ERROR 4424
Hi , I have problem when call external procedure.
She output - 1
Shell-script with jar:
#!/bin/bash
java -jar /home/dbadmin/java/hi.jar
Command line:
dbadmin=> create procedure proc27113() as 'hiplanet.sh'
dbadmin-> language 'external' user 'dbadmin';
CREATE PROCEDURE
dbadmin=> select proc27113();
ERROR 4424: Procedure execution error: exit status=1
She output - 1
Shell-script with jar:
#!/bin/bash
java -jar /home/dbadmin/java/hi.jar
Command line:
dbadmin=> create procedure proc27113() as 'hiplanet.sh'
dbadmin-> language 'external' user 'dbadmin';
CREATE PROCEDURE
dbadmin=> select proc27113();
ERROR 4424: Procedure execution error: exit status=1
0
Comments
Does the script run on its own, outside of Vertica?
It sounds like the script is failing before it can get to "exit 0". I would suggest that you add some debug logging; have the script output to a file, etc.
Adam
You are posting too much problems. Read docs!!!
EXTERNAL PROCEDURE require exit status code, why you don't define it?
https://my.vertica.com/docs/7.0.x/HTML/index.htm#Authoring/ProgrammersGuide/StoredProcedures/Require... PS
Much more easy to ask than to read, agree.
Try a full path to JAVA in EP or create link in /bin directory to java.
Environment variables are not passed from Vertica, so if path is defined in env vars EP will fail.
After I re-initialized my procedure that didn't work and after that it called.