Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUESTION] code=500, msg=command exit value(255) is failed, content=null #676

Open
SwordOOM opened this issue Aug 9, 2024 · 1 comment
Labels
question Further information is requested

Comments

@SwordOOM
Copy link

SwordOOM commented Aug 9, 2024

-rw-r--r--@ 1 sword staff 5466 8 8 18:12 588.log
-rw-r--r--@ 1 sword staff 5466 8 8 18:14 589.log
-rw-r--r--@ 1 sword staff 5466 8 8 18:14 590.log
-rw-r--r--@ 1 sword staff 5466 8 8 18:16 591.log
-rw-r--r--@ 1 sword staff 6168 8 8 18:16 592.log
-rw-r--r--@ 1 sword staff 5466 8 8 09:52 88.log
-rw-r--r--@ 1 sword staff 5466 8 8 09:52 89.log
-rw-r--r--@ 1 sword staff 5466 8 8 10:00 90.log
-rw-r--r--@ 1 sword staff 5466 8 8 10:00 91.log
-rw-r--r--@ 1 sword staff 5466 8 8 10:00 92.log
-rw-r--r--@ 1 sword staff 5466 8 8 10:00 93.log
-rw-r--r--@ 1 sword staff 5466 8 8 10:00 94.log
-rw-r--r--@ 1 sword staff 5466 8 8 10:00 95.log
-rw-r--r--@ 1 sword staff 5466 8 8 10:00 96.log
-rw-r--r--@ 1 sword staff 5466 8 8 10:00 98.log
-rw-r--r--@ 1 sword staff 5466 8 8 10:00 99.log
sword@linjiandeMacBook-Pro 2024-08-08 % cat 10:00 95.log
cat: 10:00: No such file or directory
2024-08-08 10:00:04 [JobThread.run-130]
----------- datax-web job execute start -----------
----------- Param:
2024-08-08 10:00:04 [ExecutorJobHandler.execute-68] ------------------DataX process id: -1
2024-08-08 10:00:04 [AnalysisStatistics.analysisStatisticsLog-53]
2024-08-08 10:00:04 [AnalysisStatistics.analysisStatisticsLog-53] DataX (DATAX-OPENSOURCE-3.0), From Alibaba !
2024-08-08 10:00:04 [AnalysisStatistics.analysisStatisticsLog-53] Copyright (C) 2010-2017, Alibaba Group. All Rights Reserved.
2024-08-08 10:00:04 [AnalysisStatistics.analysisStatisticsLog-53]
2024-08-08 10:00:04 [AnalysisStatistics.analysisStatisticsLog-53]
2024-08-08 10:00:04 [AnalysisStatistics.analysisStatisticsLog-53] Usage: datax.py [options] job-url-or-path
2024-08-08 10:00:04 [AnalysisStatistics.analysisStatisticsLog-53]
2024-08-08 10:00:04 [AnalysisStatistics.analysisStatisticsLog-53] Options:
2024-08-08 10:00:04 [AnalysisStatistics.analysisStatisticsLog-53] -h, --help show this help message and exit
2024-08-08 10:00:04 [AnalysisStatistics.analysisStatisticsLog-53]
2024-08-08 10:00:04 [AnalysisStatistics.analysisStatisticsLog-53] Product Env Options:
2024-08-08 10:00:04 [AnalysisStatistics.analysisStatisticsLog-53] Normal user use these options to set jvm parameters, job runtime mode
2024-08-08 10:00:04 [AnalysisStatistics.analysisStatisticsLog-53] etc. Make sure these options can be used in Product Env.
2024-08-08 10:00:04 [AnalysisStatistics.analysisStatisticsLog-53]
2024-08-08 10:00:04 [AnalysisStatistics.analysisStatisticsLog-53] -j , --jvm=
2024-08-08 10:00:04 [AnalysisStatistics.analysisStatisticsLog-53] Set jvm parameters if necessary.
2024-08-08 10:00:04 [AnalysisStatistics.analysisStatisticsLog-53] --jobid=
2024-08-08 10:00:04 [AnalysisStatistics.analysisStatisticsLog-53] Set job unique id when running by Distribute/Local
2024-08-08 10:00:04 [AnalysisStatistics.analysisStatisticsLog-53] Mode.
2024-08-08 10:00:04 [AnalysisStatistics.analysisStatisticsLog-53] -m , --mode=
2024-08-08 10:00:04 [AnalysisStatistics.analysisStatisticsLog-53] Set job runtime mode such as: standalone, local,
2024-08-08 10:00:04 [AnalysisStatistics.analysisStatisticsLog-53] distribute. Default mode is standalone.
2024-08-08 10:00:04 [AnalysisStatistics.analysisStatisticsLog-53] -p , --params=
2024-08-08 10:00:04 [AnalysisStatistics.analysisStatisticsLog-53] Set job parameter, eg: the source tableName you want
2024-08-08 10:00:04 [AnalysisStatistics.analysisStatisticsLog-53] to set it by command, then you can use like this:
2024-08-08 10:00:04 [AnalysisStatistics.analysisStatisticsLog-53] -p"-DtableName=your-table-name", if you have mutiple
2024-08-08 10:00:04 [AnalysisStatistics.analysisStatisticsLog-53] parameters: -p"-DtableName=your-table-name
2024-08-08 10:00:04 [AnalysisStatistics.analysisStatisticsLog-53] -DcolumnName=your-column-name".Note: you should config
2024-08-08 10:00:04 [AnalysisStatistics.analysisStatisticsLog-53] in you job tableName with ${tableName}.
2024-08-08 10:00:04 [AnalysisStatistics.analysisStatisticsLog-53] -r <parameter used in view job config[reader] template>, --reader=<parameter used in view job config[reader] template>
2024-08-08 10:00:04 [AnalysisStatistics.analysisStatisticsLog-53] View job config[reader] template, eg:
2024-08-08 10:00:04 [AnalysisStatistics.analysisStatisticsLog-53] mysqlreader,streamreader
2024-08-08 10:00:04 [AnalysisStatistics.analysisStatisticsLog-53] -w <parameter used in view job config[writer] template>, --writer=<parameter used in view job config[writer] template>
2024-08-08 10:00:04 [AnalysisStatistics.analysisStatisticsLog-53] View job config[writer] template, eg:
2024-08-08 10:00:04 [AnalysisStatistics.analysisStatisticsLog-53] mysqlwriter,streamwriter
2024-08-08 10:00:04 [AnalysisStatistics.analysisStatisticsLog-53]
2024-08-08 10:00:04 [AnalysisStatistics.analysisStatisticsLog-53] Develop/Debug Options:
2024-08-08 10:00:04 [AnalysisStatistics.analysisStatisticsLog-53] Developer use these options to trace more details of DataX.
2024-08-08 10:00:04 [AnalysisStatistics.analysisStatisticsLog-53]
2024-08-08 10:00:04 [AnalysisStatistics.analysisStatisticsLog-53] -d, --debug Set to remote debug mode.
2024-08-08 10:00:04 [AnalysisStatistics.analysisStatisticsLog-53] --loglevel=
2024-08-08 10:00:04 [AnalysisStatistics.analysisStatisticsLog-53] Set log level such as: debug, info, all etc.
2024-08-08 10:00:04 [JobThread.run-165]
----------- datax-web job execute end(finish) -----------
----------- ReturnT:ReturnT [code=500, msg=command exit value(255) is failed, content=null]
2024-08-08 10:00:05 [ProcessCallbackThread.callbackLog-186]
----------- datax-web job callback finish.
2024-08-08 10:00:05 [TriggerCallbackThread.callbackLog-186]
----------- datax-web job callback finish.

@SwordOOM SwordOOM added the question Further information is requested label Aug 9, 2024
@JasonStuD
Copy link

在这个文件"datax-executor/src/main/java/com/wugui/datax/executor/service/jobhandler/ExecutorJobHandler.java"文件的这一行
final Process process = Runtime.getRuntime().exec(cmdarrayFinal);
把cmdarrayFinal的内容取出来用空格分割拼接,再执行就可以了。
final Process process = Runtime.getRuntime().exec(concatCmdStr);

In the file "datax executor/SRC/main/Java/com/wugui/datax/executor/service/jobhandler ExecutorJobHandler. Java" file of this line
final Process process = Runtime.getRuntime().exec(cmdarrayFinal);
Take out the content of the cmdarrayFinal and splice it with space, and then execute it.
final Process process = Runtime.getRuntime().exec(concatCmdStr);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants