2012-06-21 5 views
6

मैं mahout kmeans क्लस्टरिंग उदाहरण (सिंथेटिक_control उदाहरण) के आउटपुट पर "क्लस्टरडम्प" करने का प्रयास कर रहा हूं। लेकिन मैं निम्नलिखित त्रुटि का अनुभव कर रहा हूँ:नवीनतम "apache mahout" लाइब्रेरी में "clusterdump" के लिए कोई seqFileDir विकल्प है?

> ~/MAHOUT/trunk/bin/mahout clusterdump --seqFileDir clusters-10-final --pointsDir clusteredPoints --output a1.txt 

MAHOUT_LOCAL is not set; adding HADOOP_CONF_DIR to classpath. 
Running on hadoop, using /usr/lib/hadoop/bin/hadoop and HADOOP_CONF_DIR=/usr/lib/hadoop/conf/ 
MAHOUT-JOB: /home/<username>/MAHOUT/trunk/examples/target/mahout-examples-0.8-SNAPSHOT-job.jar 

12/06/21 22:43:18 WARN conf.Configuration: DEPRECATED: hadoop-site.xml found in the classpath. Usage of hadoop-site.xml is deprecated. Instead use core-site.xml, mapred-site.xml and hdfs-site.xml to override properties of core-default.xml, mapred-default.xml and hdfs-default.xml respectively 

12/06/21 22:43:25 ERROR common.AbstractJob: Unexpected --seqFileDir while processing Job-Specific Options: 
usage: <command> [Generic Options] [Job-Specific Options] 
..... 

तो मुझे लगता है कि वहाँ clusterdump के लिए कोई "seqFileDir" विकल्प है, लेकिन सभी ऑनलाइन ट्यूटोरियल (उदाहरण, https://cwiki.apache.org/MAHOUT/cluster-dumper.html) इस विकल्प का संदर्भ लें। क्या आप कृपया मुझे उपाय या क्या याद आ रही है?

उत्तर

2

क्या आपने इसे --input विकल्प के रूप में निर्दिष्ट करने का प्रयास किया था?

+1

हाँ मैंने किया। जब मैंने --seqFileDir को --input द्वारा प्रतिस्थापित किया, तो आउटपुट फ़ाइल उत्पन्न हुई, लेकिन वह ईएमपीटीई थी! क्या आप जानते हैं कि ट्यूटोरियल क्यों --seqFileDir विकल्प के बारे में बात करते हैं? –

+2

मैं इस समस्या पर काम कर रहा था। जादुई रूप से मुझे समाधान मिला !!! आपके सुझाव के लिए धन्यवाद - इनपुट --seqFileDir विकल्प के इनस्थल में काम किया। मैं गलत क्या कर रहा था, मुझे पता नहीं था कि क्लस्टरडम्प (हैडूपी_एचओएमई सेट के साथ) एचडीएफएस से पढ़ता है और स्थानीय फाइल सिस्टम में आउटपुट लिखता है। वैसे भी, चीजें ठीक काम कर रही हैं! –

संबंधित मुद्दे