[英]Hadoop 2.6.0 HDFS Output Folder
我m new to Hadoop. I setting up a hadoop-cluster with 1 Master and 3 Slaves. Everything is working fine so far. If I start a MapReduce Job the output folder isn
m new to Hadoop. I setting up a hadoop-cluster with 1 Master and 3 Slaves. Everything is working fine so far. If I start a MapReduce Job the output folder isn
m new to Hadoop. I setting up a hadoop-cluster with 1 Master and 3 Slaves. Everything is working fine so far. If I start a MapReduce Job the output folder isn
設置m new to Hadoop. I setting up a hadoop-cluster with 1 Master and 3 Slaves. Everything is working fine so far. If I start a MapReduce Job the output folder isn
如do命令所示
hadoop jar TestApp.jar /hdfs/input /hdfs/output
但在/ hdfs /中沒有輸出目錄,它在/ user / hduser / hdfs / output中,但我無法獲得工作結果。
有人可以解釋一下
曼努埃爾
這很可能是因為您以hduser
運行Hadoop命令。 under hdfs:///user/<username>
. 每個類Unix用戶在hdfs:///user/<username>
下都有一個HDFS 。 whoami
命令的結果是什么?
為了訪問作業的結果,您將不得不使用Hadoop命令,我的意思是,類似Unix的cat
命令將不起作用,但是hadoop fs -cat
或hdfs dfs -cat
( 在此處完整參考)。
這可能是因為您已在計算機內部以hduser身份登錄,這就是它采用hduser路徑的原因。 frb清楚地解釋了為什么這可能是原因。 現在,您可以在/ user / hduser / hdfs / input路徑中提供輸入目錄。 因此它將與您所有目錄同步
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.