Hi Prakash, It seems that you have hadoop dependencies included into apa file. can you exclude hadoop dependencies from app package and try again.
Take a look at following documentation for removing these dependencies from application package. http://docs.datatorrent.com/troubleshooting/#hadoop-dependencies-conflicts Also make sure that your hadoop version is above 2.6. Apex may not work with hadoop 2.2 after APEXCORE-536. Regards, -Tushar On Wed, Nov 16, 2016 at 7:39 AM, [email protected] <[email protected]> wrote: > Hi Munagala > > I tried with fileIO program copied from examples. It is showing the below > error when executing the apa file. > > Please find the below messages which is occurring when executing the apa > file. > ========================================================= > [edureka@localhost work]$ cd apex-core/ > [edureka@localhost apex-core]$ cd engine/ > engine-checkstyle-suppressions.xml src/ > pom.xml target/ > [edureka@localhost apex-core]$ cd engine/src/ > main/ test/ > [edureka@localhost apex-core]$ cd engine/src/main/ > appended-resources/ java/ resources/ scripts/ > [edureka@localhost apex-core]$ cd engine/src/main/scripts/ > [edureka@localhost scripts]$ ls > apex target > [edureka@localhost scripts]$ bash apex > Apex CLI 3.5.0-SNAPSHOT 14.11.2016 @ 08:46:21 IST rev: 2c024cd branch: > master > apex> launch /home/edureka/work > workspace work > apex> launch /home/edureka/work/fileIO/target/*.apa > 1. FileIO > 2. ThroughputBasedFileIO > Choose application: 1 > java.lang.NoSuchMethodError: > org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext.setApplicationTags(Ljava/util/Set;)V > at > com.datatorrent.stram.StramClient.startApplication(StramClient.java:612) > at > com.datatorrent.stram.client.StramAppLauncher.launchApp(StramAppLauncher.java:640) > at > com.datatorrent.stram.cli.ApexCli$LaunchCommand.execute(ApexCli.java:2065) > at > com.datatorrent.stram.cli.ApexCli.launchAppPackage(ApexCli.java:3464) > at com.datatorrent.stram.cli.ApexCli.access$7400(ApexCli.java:153) > at > com.datatorrent.stram.cli.ApexCli$LaunchCommand.execute(ApexCli.java:1909) > at com.datatorrent.stram.cli.ApexCli$3.run(ApexCli.java:1468) > > Fatal error encountered > [edureka@localhost scripts]$ javac -version > javac 1.7.0_67 > [edureka@localhost scripts]$ java -version > java version "1.7.0_67" > Java(TM) SE Runtime Environment (build 1.7.0_67-b01) > Java HotSpot(TM) Client VM (build 24.65-b04, mixed mode) > [edureka@localhost scripts]$ mvn --version > Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 > 19:21:28+0530) > Maven home: /home/edureka/apache-maven-3.0.5 > Java version: 1.7.0_67, vendor: Oracle Corporation > Java home: /usr/lib/jvm/jdk1.7.0_67/jre > Default locale: en_US, platform encoding: UTF-8 > OS name: "linux", version: "2.6.32-431.29.2.el6.i686", arch: "i386", family: > "unix" > [edureka@localhost scripts]$ > ============================================================= > > I can execute any other java project smoothly. I already have the input-dir > & output-dir folder exists in the hdfs and also in local. > > Please suggest me the solution so that I can kick start with apex. > > Thanks a lot in advance. > > Regards, > Prakash > > > > -- > View this message in context: > http://apache-apex-users-list.78494.x6.nabble.com/SortedWordCount-example-is-not-running-tp1126p1128.html > Sent from the Apache Apex Users list mailing list archive at Nabble.com.
