We are getting below error when creation the Job
Encountered an error when getting info from DICT!!
Please check the status of ZK and DICT.
Failed to create loading jobs: [load_patient_CSVs].
For more info, please check log at node 'm1': /home/tigergraph/tigergraph/log/gsql/ERROR.20220220-151540.669
Below is what I see in the server logs
E@20220222 02:13:33.545 tigergraph|localhost:43940|00000001390 (AdminServiceClient.java:677) Download catalog from dict fails with code: 310
E@20220222 02:13:33.546 tigergraph|localhost:43940|00000001390 (Catalog.java:4819) Cannot get the generated code, please check if ZK or DICT is down.
E@20220222 02:13:33.546 tigergraph|localhost:43940|00000001390 (MetadataUpdateOperation.java:151) Failed executeInMemory for CreateLoadJobOperation
Any help to t-shoot the issue much appreciated.
-
Open tg connection
conn = tg.TigerGraphConnection( host=hostName, username=userName, password=password)
-
Make sure connection is good
# print any current schema so we can verify that we are connected res = conn.gsql('LS') print(res)
3. Define Job
job_load_patient_CSVs = '''
CREATE LOADING JOB load_patient_CSVs FOR GRAPH PatientCentral {
DEFINE FILENAME patient_CSVs_path="/coldstart/upload/pending_vertices/patients/";
LOAD patient_CSVs_path TO VERTEX Patient VALUES($0, $1, $2) USING HEADER="false";
}'''
res = conn.gsql(job_load_patient_CSVs)
print (res)