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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Issue while executing .sh file in linux server generated using Talend Data Open Studio Integration

Hi , I am getting error while running .sh file generated using Talend open studio data Integration as :- Unrecognized option: --context=Default Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.

My Server details where I am executing the sh file:- Linux with Java 1.8 Its a job which takes the data using tDBinput and uses a tMap gives output as a tFileOutputPositional file in Talend. Please help me in executing the .sh file successfully.

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

It worked with sh -x .sh command

View solution in original post

6 Replies
Anonymous
Not applicable
Author

Hi
Do you install studio on the same machine and export the job script or you get the job script from other place?
Can you show us how you execute the job script?

Regards
Shong
Anonymous
Not applicable
Author

Hi Shong,

My Studio is on 1 machine and after generating the Job script,I copied the Build zip to another Linux server where I am running it from.

I am running as below:

sh Job_run.sh
Unrecognized option: --context=Default
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

Anonymous
Not applicable
Author

Make sure you have JDK installation on the Linux server where the job is execution. Execute the below command to check the Java vesion
~>java -version
Anonymous
Not applicable
Author

Executed :   java -version
java version "1.8.0_162"
Java(TM) SE Runtime Environment (build 1.8.0_162-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.162-b12, mixed mode)

Anonymous
Not applicable
Author

Java Version on Machine where Studio is :

java -version java version "1.8.0_162" Java(TM) SE Runtime Environment (build 1.8.0_162-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.162-b12, mixed mode)

 

Java Version on Linux Machine:

java -version
java version "1.8.0_162"
Java(TM) SE Runtime Environment (build 1.8.0_162-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.162-b12, mixed mode)

Anonymous
Not applicable
Author

It worked with sh -x .sh command