2013-07-17 5 views
0

MY HADOOP가 단일 노드에서 시작되었습니다. 그러나 단어 개수 프로그램을 실행하는 동안 다음 오류가 표시됩니다. 무엇이 문제 일 수 있습니까?hadoop에서 단어 개수 실행

당신은 당신의 작업을 호출 bin 폴더와 항아리 하위 명령에 하둡 스크립트를 사용할 필요가
[email protected]:~/hadoop-1.0.4$hadoop-examples-1.0.4.jar wordcount 
/home/hduser/hadoop-1.0.4/dft /home/hduser/hadoop-1.0.4/dft-output 
/home/hduser/hadoop-1.0.4/hadoop-examples-1.0.4.jar: line 1: $'PK\003\004':command not found 
/home/hduser/hadoop-1.0.4/hadoop-examples-1.0.4.jar: line 2: syntax error near unexpected token `)' 
/home/hduser/hadoop-1.0.4/hadoop-examples-1.0.4.jar: line 2: `)CA META-INF/��PK' 
[email protected]:~/hadoop-1.0.4$ ^C 
[email protected]:~/hadoop-1.0.4$ cd .. 
[email protected]:~$ /hadoop-1.0.4 hadoop-examples-1.0.4.jar wordcount 
/home/hduser/hadoop-1.0.4/dft /home/hduser/hadoop-1.0.4/dft-output 
bash: /hadoop-1.0.4: No such file or directory 
[email protected]:~$ ^C 

답변

0

,이 시도 :

[email protected]:~$ cd ~/hadoop-1.0.4 
[email protected]:~/hadoop-1.0.4$ bin/hadoop jar hadoop-examples-1.0.4.jar \ 
     wordcount /home/hduser/hadoop-1.0.4/dft \ 
     /home/hduser/hadoop-1.0.4/dft-output 

을 나는 또한 당신의 입력과 출력 경로에서 있으리라 믿고있어 그 당신의 hadoop은 로컬 모드로 설정되어 있습니다 (경로는 로컬 경로입니다 :/home/hduser)