Course > Certificate > "Issue certificate to" criteria updation #288
-
Hello, We are facing an issue with getting certificates for the course. The "issue certificate to" option is set to "My org users", which seems to be a problem and we wanted to update that to "All". Could you please help us with how we can update this or any workaround to resolve this? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 17 replies
-
@rajeevsathish - Can you share how to correct the certificate issue criteria from backend please? |
Beta Was this translation helpful? Give feedback.
-
Hello @vinukumar-vs @reshmi-nair Here is the curl that we used for the update. Please let us know if it is correct.
|
Beta Was this translation helpful? Give feedback.
-
We have used this script couple of years back .. do check and use accordingly @komalm Setup: Execution: spark> ReplayIssueCertificates.main(sc, "BatchID", "CourseID", "<env_name>", "<kafka_IP>:9092", false) - for issuing certificates. Below is the failed topic name: cc: @Krishnaj20 |
Beta Was this translation helpful? Give feedback.
-
@Renuka-S - since we haven't heard back from you. Marking this thread as answered. |
Beta Was this translation helpful? Give feedback.
-
the parameters are "BatchID", "CourseID" .. hope this helps .. |
Beta Was this translation helpful? Give feedback.
-
@saiakhil46 @komalm Please share updates as you were looking into this. |
Beta Was this translation helpful? Give feedback.
We have used this script couple of years back .. do check and use accordingly @komalm
https://github.com/Sunbird-Ed/sunbird-data-products/pull/167/files#diff-e5beab9b7248b2dbe23f207a971750ea0214a96bd1a252154b2e3944641417e2
Setup:
Login to Spark machine - where you can run this script
vi /home/analytics/ReplayIssueCertificates.scala
Copy the data from https://github.com/Sunbird-Ed/sunbird-data-products/pull/167/files and paste it in ReplayIssueCertificates.scala.
Execution:
cd /mount/data/analytics/spark-2.4.4-bin-hadoop2.7
sudo bin/spark-shell --master local[*] --packages com.datastax.spark:spark-cassandra-connector_2.11:2.5.0 --jars /mount/data/analytics/models-2.0/analytics-framework-2.…