Member since
01-26-2014
35
Posts
0
Kudos Received
1
Solution
My Accepted Solutions
Title | Views | Posted |
---|---|---|
6802 | 06-23-2014 05:23 PM |
04-25-2014
06:27 PM
Hi Sean, you are right. Thanks.
... View more
04-25-2014
06:42 AM
Hi Sean, I have a problem about running mahout app in cdh5. Please help me to solve it. The code as: public class ItemCFHadoop { private static final String HDFS = "hdfs://192.168.1.210:9000"; public static void main(String[] args) throws Exception { String localFile = "datafile/item.csv"; String inPath = HDFS + "/user/hdfs/userCF"; String inFile = inPath + "/item.csv"; String outPath = HDFS + "/user/hdfs/userCF/result/"; String outFile = outPath + "/part-r-00000"; String tmpPath = HDFS + "/tmp/" + System.currentTimeMillis(); JobConf conf = config(); StringBuilder sb = new StringBuilder(); sb.append("--input ").append(inPath); sb.append(" --output ").append(outPath); sb.append(" --booleanData true"); sb.append(" --similarityClassname org.apache.mahout.math.hadoop.similarity.cooccurrence.measures.EuclideanDistanceSimilarity"); sb.append(" --tempDir ").append(tmpPath); args = sb.toString().split(" "); RecommenderJob job = new RecommenderJob(); job.setConf(conf); job.run(args); } public static JobConf config() { JobConf conf = new JobConf(ItemCFHadoop.class); conf.setJobName("ItemCFHadoop"); conf.addResource("classpath:/hadoop/core-site.xml"); conf.addResource("classpath:/hadoop/hdfs-site.xml"); conf.addResource("classpath:/hadoop/mapred-site.xml"); return conf; } } The exception as: [hdfs@hadoop140 mahout]$ hadoop jar /home/mahout/myMahout.jar mahout in hadoop cluster running... 14/04/25 17:21:16 INFO common.AbstractJob: Command line arguments: {--booleanData=[true], --endPhase=[2147483647], --input=[hdfs://192.168.1.140:9000/user/hdfs/userCF], --maxPrefsPerUser=[10], --maxPrefsPerUserInItemSimilarity=[1000], --maxSimilaritiesPerItem=[100], --minPrefsPerUser=[1], --numRecommendations=[10], --output=[hdfs://192.168.1.140:9000/user/hdfs/userCF/result/], --similarityClassname=[org.apache.mahout.math.hadoop.similarity.cooccurrence.measures.EuclideanDistanceSimilarity], --startPhase=[0], --tempDir=[hdfs://192.168.1.140:9000/tmp/1398417675558]} 14/04/25 17:21:16 INFO common.AbstractJob: Command line arguments: {--booleanData=[true], --endPhase=[2147483647], --input=[hdfs://192.168.1.140:9000/user/hdfs/userCF], --maxPrefsPerUser=[1000], --minPrefsPerUser=[1], --output=[hdfs://192.168.1.140:9000/tmp/1398417675558/preparePreferenceMatrix], --ratingShift=[0.0], --startPhase=[0], --tempDir=[hdfs://192.168.1.140:9000/tmp/1398417675558]} 14/04/25 17:21:17 INFO Configuration.deprecation: mapred.input.dir is deprecated. Instead, use mapreduce.input.fileinputformat.inputdir 14/04/25 17:21:17 INFO Configuration.deprecation: mapred.compress.map.output is deprecated. Instead, use mapreduce.map.output.compress 14/04/25 17:21:17 INFO Configuration.deprecation: mapred.output.dir is deprecated. Instead, use mapreduce.output.fileoutputformat.outputdir Exception in thread "main" java.lang.IncompatibleClassChangeError: Found interface org.apache.hadoop.mapreduce.JobContext, but class was expected at org.apache.mahout.common.HadoopUtil.getCustomJobName(HadoopUtil.java:174) at org.apache.mahout.common.AbstractJob.prepareJob(AbstractJob.java:614) at org.apache.mahout.cf.taste.hadoop.preparation.PreparePreferenceMatrixJob.run(PreparePreferenceMatrixJob.java:75) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70) at org.apache.mahout.cf.taste.hadoop.item.RecommenderJob.run(RecommenderJob.java:158) at org.conan.mymahout.recommendation.ItemCFHadoop.main(ItemCFHadoop.java:40) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.hadoop.util.RunJar.main(RunJar.java:212)
... View more
Labels:
- Labels:
-
Apache Hadoop
-
HDFS
-
MapReduce
04-25-2014
06:08 AM
Hi Sean, I want to know that if oryx support deep learning algorithm now or in the future.
... View more
03-05-2014
06:20 AM
Yes, you are right. It's error about Eclipse integration with maven. And I change my dev tools to IntelliJ IDEA. Thank you for helping me that a Windows Phone and Windows Azure developer.
... View more
03-05-2014
02:24 AM
Hi Sean, What development tool do you use to write code for oryx?
... View more
03-05-2014
01:49 AM
I think it would be better if there is a introduction of building with Eclipse.
... View more
03-05-2014
01:44 AM
oryx-kmeans-computation pom.xml <build> <pluginManagement> <plugins> <plugin> <groupId>org.apache.avro</groupId> <artifactId>avro-maven-plugin</artifactId> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-failsafe-plugin</artifactId> </plugin> </plugins> </pluginManagement> </build>
... View more
03-05-2014
01:40 AM
When I inport the oryx source, it shows avro-maven-plugin and maven-antrun-plugin error. So I add <pluginManagement> tag to the pom.xml to solve the issues. Then most of the problems are solved. But there are two compilation error in kmeans-computation/src/main/java/com/cloudera/oryx/kmeans/computation/MLAvros.java VectorConvert.java : import com.cloudera.oryx.kmeans.computation.avro.MLVector; import com.cloudera.oryx.kmeans.computation.avro.MLWeightedVector;
... View more
03-04-2014
10:38 PM
Hi Sean, I got the Oryx code in github. I import the source code into eclipse, it occur some Java problems. Please tell me how to build the source in eclipse. My develop OS is Windows Server 2012, and the following commands are running OK in PowerShell. git clone https://github.com/cloudera/oryx.git cd oryx mvn -DskipTests install Thanks.
... View more