파이프 버전에서 실행할 때 잘 작동하는 매퍼와 감속기가 있습니다.
cat data.csv | ./mapper.py | sort -k1,1 | ./reducer.py
Elastic mapreducer 마법사,로드 된 입력, 출력, 부트 스트랩 등을 사용했습니다. 부트 스트랩은 성공했지만 여전히 실행 오류가 발생합니다.
이것은 1 단계에서 stderr에서 얻는 오류입니다.
+ /etc/init.d/hadoop-state-pusher-control stop
+ PID_FILE=/mnt/var/run/hadoop-state-pusher/hadoop-state-pusher.pid
+ LOG_FILE=/mnt/var/log/hadoop-state-pusher/hadoop-state-pusher.out
+ SVC_FILE=/mnt/var/lib/hadoop-state-pusher/run-hadoop-state-pusher
+ case $1 in
+ stop
+ echo 0
/etc/init.d/hadoop-state-pusher-control: line 35: /mnt/var/lib/hadoop-state-pusher/run-hadoop-state-pusher: No such file or directory
+ /etc/init.d/hadoop-state-pusher-control start
+ PID_FILE=/mnt/var/run/hadoop-state-pusher/hadoop-state-pusher.pid
+ LOG_FILE=/mnt/var/log/hadoop-state-pusher/hadoop-state-pusher.out
+ SVC_FILE=/mnt/var/lib/hadoop-state-pusher/run-hadoop-state-pusher
+ case $1 in
+ start
++ dirname /mnt/var/lib/hadoop-state-pusher/run-hadoop-state-pusher
+ sudo -u hadoop mkdir -p /mnt/var/lib/hadoop-state-pusher
+ echo 1
++ dirname /mnt/var/run/hadoop-state-pusher/hadoop-state-pusher.pid
+ sudo -u hadoop mkdir -p /mnt/var/run/hadoop-state-pusher
++ dirname /mnt/var/log/hadoop-state-pusher/hadoop-state-pusher.out
+ sudo -u hadoop mkdir -p /mnt/var/log/hadoop-state-pusher
+ disown %1
+ sleep 5
+ sudo -u hadoop /usr/bin/hadoop-state-pusher -server --pidfile /mnt/var/run/hadoop-state-pusher/hadoop-state-pusher.pid
+ exit 0
Command exiting with ret '0'
이것은 수수께끼입니다. 이것은 도대체 무엇을 의미합니까?
뭔가를 장착하는 데 문제가있는 것 같습니까? 다른 로그 파일 중 어떤 것이 유익하다고 말할 수 있습니까? 어디를 찾아야합니까?
인스턴스를 더 크게 만드는 데 여기 에서 찾은 해결책을 시도했지만 작동하지 않는 동일한 오류 메시지가 표시됩니다.
잘못된 로그 파일을 찾고있었습니다. 실제로 유용한 파이썬 디버깅 정보를 제공하는 다른 (6과 같습니까?)이 있습니다. string interpolation.format("of this kind {}, not this kind with a digit {1}".vars(a,b))
Elastic mapreduce에서 사용되는 EC2 이미지에 기본적으로 설치된 python <2.7에서 지원되지 않는 a 를 사용했습니다.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다