louis@louis-VM:~/Downloads/apache-storm-0.9.7/examples/storm-starter$ mvn -v
Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-15T01:29:23+08:00)
Maven home: /home/louis/Downloads/apache-maven-3.2.5
Java version: 1.6.0_41, vendor: Sun Microsystems Inc.
Java home: /usr/lib/jvm/java-6-openjdk-amd64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.16.0-77-generic", arch: "amd64", family: "unix"
louis@louis-VM:~/Downloads/apache-storm-0.9.7/examples/storm-starter$ mvn test
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building storm-starter 0.9.7
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-remote-resources-plugin:1.2.1:process (default) @ storm-starter ---
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ storm-starter ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 8 resources
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ storm-starter ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 29 source files to /home/louis/Downloads/apache-storm-0.9.7/examples/storm-starter/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /home/louis/Downloads/apache-storm-0.9.7/examples/storm-starter/src/jvm/storm/starter/WordCountTopology.java:[41,22] <identifier> expected
[ERROR] /home/louis/Downloads/apache-storm-0.9.7/examples/storm-starter/src/jvm/storm/starter/WordCountTopology.java:[71,17] <identifier> expected
[ERROR] /home/louis/Downloads/apache-storm-0.9.7/examples/storm-starter/src/jvm/storm/starter/WordCountTopology.java:[71,35] <identifier> expected
[ERROR] /home/louis/Downloads/apache-storm-0.9.7/examples/storm-starter/src/jvm/storm/starter/WordCountTopology.java:[71,56] <identifier> expected
[ERROR] /home/louis/Downloads/apache-storm-0.9.7/examples/storm-starter/src/jvm/storm/starter/WordCountTopology.java:[73,12] invalid method declaration; return type required
[INFO] 5 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.680 s
[INFO] Finished at: 2017-06-29T15:30:33+08:00
[INFO] Final Memory: 15M/120M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project storm-starter: Compilation failure: Compilation failure:
[ERROR] /home/louis/Downloads/apache-storm-0.9.7/examples/storm-starter/src/jvm/storm/starter/WordCountTopology.java:[41,22] <identifier> expected
[ERROR] /home/louis/Downloads/apache-storm-0.9.7/examples/storm-starter/src/jvm/storm/starter/WordCountTopology.java:[71,17] <identifier> expected
[ERROR] /home/louis/Downloads/apache-storm-0.9.7/examples/storm-starter/src/jvm/storm/starter/WordCountTopology.java:[71,35] <identifier> expected
[ERROR] /home/louis/Downloads/apache-storm-0.9.7/examples/storm-starter/src/jvm/storm/starter/WordCountTopology.java:[71,56] <identifier> expected
[ERROR] /home/louis/Downloads/apache-storm-0.9.7/examples/storm-starter/src/jvm/storm/starter/WordCountTopology.java:[73,12] invalid method declaration; return type required
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
louis@louis-VM:~/Downloads/apache-storm-0.9.7/examples/storm-starter$ mvn test
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building storm-starter 0.9.7
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-remote-resources-plugin:1.2.1:process (default) @ storm-starter ---
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ storm-starter ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 8 resources
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ storm-starter ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 29 source files to /home/louis/Downloads/apache-storm-0.9.7/examples/storm-starter/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /home/louis/Downloads/apache-storm-0.9.7/examples/storm-starter/src/jvm/storm/starter/WordCountTopology.java:[41,22] <identifier> expected
[ERROR] /home/louis/Downloads/apache-storm-0.9.7/examples/storm-starter/src/jvm/storm/starter/WordCountTopology.java:[71,17] <identifier> expected
[ERROR] /home/louis/Downloads/apache-storm-0.9.7/examples/storm-starter/src/jvm/storm/starter/WordCountTopology.java:[71,35] <identifier> expected
[ERROR] /home/louis/Downloads/apache-storm-0.9.7/examples/storm-starter/src/jvm/storm/starter/WordCountTopology.java:[71,56] <identifier> expected
[ERROR] /home/louis/Downloads/apache-storm-0.9.7/examples/storm-starter/src/jvm/storm/starter/WordCountTopology.java:[73,12] invalid method declaration; return type required
[INFO] 5 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.987 s
[INFO] Finished at: 2017-06-29T16:20:31+08:00
[INFO] Final Memory: 15M/119M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project storm-starter: Compilation failure: Compilation failure:
[ERROR] /home/louis/Downloads/apache-storm-0.9.7/examples/storm-starter/src/jvm/storm/starter/WordCountTopology.java:[41,22] <identifier> expected
[ERROR] /home/louis/Downloads/apache-storm-0.9.7/examples/storm-starter/src/jvm/storm/starter/WordCountTopology.java:[71,17] <identifier> expected
[ERROR] /home/louis/Downloads/apache-storm-0.9.7/examples/storm-starter/src/jvm/storm/starter/WordCountTopology.java:[71,35] <identifier> expected
[ERROR] /home/louis/Downloads/apache-storm-0.9.7/examples/storm-starter/src/jvm/storm/starter/WordCountTopology.java:[71,56] <identifier> expected
[ERROR] /home/louis/Downloads/apache-storm-0.9.7/examples/storm-starter/src/jvm/storm/starter/WordCountTopology.java:[73,12] invalid method declaration; return type required
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
louis@louis-VM:~/Downloads/apache-storm-0.9.7/examples/storm-starter$ jps
2322 NameNode
2985 TaskTracker
4844 Jps
2494 DataNode
2782 JobTracker
2689 SecondaryNameNode
louis@louis-VM:~/Downloads/apache-storm-0.9.7/examples/storm-starter$ vim pom.xml
louis@louis-VM:~/Downloads/apache-storm-0.9.7/examples/storm-starter$ vim ~/.bashrc
louis@louis-VM:~/Downloads/apache-storm-0.9.7/examples/storm-starter$ source ~/.bashrc
louis@louis-VM:~/Downloads/apache-storm-0.9.7/examples/storm-starter$ mvn test
Error: Could not find or load main class org.codehaus.plexus.classworlds.launcher.Launcher
louis@louis-VM:~/Downloads/apache-storm-0.9.7/examples/storm-starter$ mvn test
Error: Could not find or load main class org.codehaus.plexus.classworlds.launcher.Launcher
louis@louis-VM:~/Downloads/apache-storm-0.9.7/examples/storm-starter$ mvn -v
Error: Could not find or load main class org.codehaus.plexus.classworlds.launcher.Launcher
louis@louis-VM:~/Downloads/apache-storm-0.9.7/examples/storm-starter$ source /etc/profile
louis@louis-VM:~/Downloads/apache-storm-0.9.7/examples/storm-starter$ mvn -v
Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-15T01:29:23+08:00)
Maven home: /home/louis/Downloads/apache-maven-3.2.5
Java version: 1.6.0_41, vendor: Sun Microsystems Inc.
Java home: /usr/lib/jvm/java-6-openjdk-amd64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.16.0-77-generic", arch: "amd64", family: "unix"
louis@louis-VM:~/Downloads/apache-storm-0.9.7/examples/storm-starter$ mvn
test
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building storm-starter 0.9.7
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-remote-resources-plugin:1.2.1:process (default) @ storm-starter ---
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ storm-starter ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 8 resources
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ storm-starter ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 29 source files to /home/louis/Downloads/apache-storm-0.9.7/examples/storm-starter/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /home/louis/Downloads/apache-storm-0.9.7/examples/storm-starter/src/jvm/storm/starter/WordCountTopology.java:[41,22] <identifier> expected
[ERROR] /home/louis/Downloads/apache-storm-0.9.7/examples/storm-starter/src/jvm/storm/starter/WordCountTopology.java:[71,17] <identifier> expected
[ERROR] /home/louis/Downloads/apache-storm-0.9.7/examples/storm-starter/src/jvm/storm/starter/WordCountTopology.java:[71,35] <identifier> expected
[ERROR] /home/louis/Downloads/apache-storm-0.9.7/examples/storm-starter/src/jvm/storm/starter/WordCountTopology.java:[71,56] <identifier> expected
[ERROR] /home/louis/Downloads/apache-storm-0.9.7/examples/storm-starter/src/jvm/storm/starter/WordCountTopology.java:[73,12] invalid method declaration; return type required
[INFO] 5 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.167 s
[INFO] Finished at: 2017-06-29T16:26:54+08:00
[INFO] Final Memory: 16M/152M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project storm-starter: Compilation failure: Compilation failure:
[ERROR] /home/louis/Downloads/apache-storm-0.9.7/examples/storm-starter/src/jvm/storm/starter/WordCountTopology.java:[41,22] <identifier> expected
[ERROR] /home/louis/Downloads/apache-storm-0.9.7/examples/storm-starter/src/jvm/storm/starter/WordCountTopology.java:[71,17] <identifier> expected
[ERROR] /home/louis/Downloads/apache-storm-0.9.7/examples/storm-starter/src/jvm/storm/starter/WordCountTopology.java:[71,35] <identifier> expected
[ERROR] /home/louis/Downloads/apache-storm-0.9.7/examples/storm-starter/src/jvm/storm/starter/WordCountTopology.java:[71,56] <identifier> expected
[ERROR] /home/louis/Downloads/apache-storm-0.9.7/examples/storm-starter/src/jvm/storm/starter/WordCountTopology.java:[73,12] invalid method declaration; return type required
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
louis@louis-VM:~/Downloads/apache-storm-0.9.7/examples/storm-starter$ vim /home/louis/Downloads/apache-maven-3.2.5
[1]+ Stopped vim /home/louis/Downloads/apache-maven-3.2.5
louis@louis-VM:~/Downloads/apache-storm-0.9.7/examples/storm-starter$ vim /home/louis/Downloads/apache-maven-3.2.5/conf/settings.xml
louis@louis-VM:~/Downloads/apache-storm-0.9.7/examples/storm-starter$ mvn compile exec:java -Dstorm.topology=storm.starter.WordCountTopology
[INFO] Scanning for projects...
Downloading: http://maven.oschina.net/content/groups/public/org/apache/storm/storm/0.9.7/storm-0.9.7.pom
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.apache.storm:storm-starter:[unknown-version] (/home/louis/Downloads/apache-storm-0.9.7/examples/storm-starter/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Could not transfer artifact org.apache.storm:storm:pom:0.9.7 from/to nexus-osc (http://maven.oschina.net/content/groups/public/): Connect to maven.oschina.net:80 [maven.oschina.net/183.78.182.122] failed: Connection refused (Connection refused) and 'parent.relativePath' points at wrong local POM @ line 20, column 11 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException