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

start_server.sh运行成功,结果进程并未启动 #12

Open
ChanChiChoi opened this issue Nov 10, 2020 · 0 comments
Open

start_server.sh运行成功,结果进程并未启动 #12

ChanChiChoi opened this issue Nov 10, 2020 · 0 comments

Comments

@ChanChiChoi
Copy link

ChanChiChoi commented Nov 10, 2020

在运行单机版时,运行start_server.sh join之后,显示success,但是后台进程并未成功.建议如下,添加2行,而不是只是检测nohup的返回值是否为0来判断.感谢!

可将

nohup python $CURRENT_DIR/data_join/data_join_server.py $REMOTE_IP $INDEX \    
    $PARTITION_ID $DATA_SOURCE_NAME $DATA_BLOCK_DIR $RAW_DATA_DIR $ROLE -m=$MODE \    
    -p=$PORT0 --raw_data_iter=$RAW_DATA_ITER --compressed_type=$COMPRESSED_TYPE \    
    --example_joiner=$EXAMPLE_JOINER $EAGER_MODE >>"${data_join_log_dir}/console_${ROLE}.log" \    
    2>>"${data_join_log_dir}/error_${ROLE}.log" &    
    ans=`ps -ef|grep data_join_server|grep ${ROLE}`  # 可简单通过查询进程是否启动    
    if [[ -n "${ans}" ]]; then # nohup启动正常,且原代码直接将错误输出流输入到文件,看该文件可解决问题,但是用户体检上,还是应该报错的.    
        echo "data join service start successfully"    
        echo "log dir: ${data_join_log_dir}"    
        echo "input dir: ${RAW_DATA_DIR}"    
        echo "output dir: ${DATA_BLOCK_DIR}"    
    else    
        echo "data join service start failed"    
    fi    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant