Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

The hash is not initialized - launching job by sh

Hi,

 

I have a issue. My job is working perfectly with tHashOutput and tHashInput if in tFileInputPositional and tFileOutputDelimited I put the file path (ex. "/tmp/file.txt")  (ex. "/tmp/out.txt"). I created 2 context variable fileInput and fileOutput to do the same things, but in order to run myJob by .sh, outside Talend. I replaced my "/tmp/file.txt" by context.fileInput and "/tmp/out.txt" by context.fileOutput. I want to passing file at runtime. After building the job I am trying to run it by .sh, but I got the following error:

 

Exception in component tHashInput_1 (mainElabGal_Alf)
java.lang.RuntimeException: The hash is not initialized : The hash must exist before you read from it
at gal.mainelabgal_alf_0_1.mainElabGal_Alf.tHashInput_1Process(mainElabGal_Alf.java:1318)
at gal.mainelabgal_alf_0_1.mainElabGal_Alf.runJobInTOS(mainElabGal_Alf.java:25401)
at gal.mainelabgal_alf_0_1.mainElabGal_Alf.main(mainElabGal_Alf.java:25246)

 

My .sh:

./mainElabGal_Alf_run.sh --context_param fileInput=/tmp/file.txt --context_param fileOutput=/tmp/out.txt

 

I attached my job. Does anyone could help me please?

Thank you in advance!!

Labels (3)
1 Solution

Accepted Solutions
manodwhb
Champion II
Champion II

@Emanuele89 ,you need to create a dependency that all the data has loaded in tHashout to read those using tHashInput. check below0683p000009M2xU.png way.

 

View solution in original post

3 Replies
manodwhb
Champion II
Champion II

@Emanuele89 ,you need to create a dependency that all the data has loaded in tHashout to read those using tHashInput. check below0683p000009M2xU.png way.

 

Anonymous
Not applicable
Author

Hi,

thank you for your reply.

How can I create a dependecies? I cannot link all my tFileInputPositional with "onSubjokOK" to "tHasInput". I can do this with only the first one. For the others I tried "onComponentOK", but it is not working 0683p000009MPcz.png

Anonymous
Not applicable
Author

@manodwhb 

I solved it! I linked all my tFileInputPositional by "onSubjobOk", the I linked the last one and I linked it to the first tHashInput.

Thank you for your help!!