[ https://issues.apache.org/jira/browse/HDFS-8132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14494847#comment-14494847 ]
Chris Nauroth commented on HDFS-8132: ------------------------------------- Hello [~brahmareddy]. I don't really know anything about JCarder, but it looks like the tool couldn't interpret some bytecode. I wonder if the tool is tied to the Java 6 class format. Hadoop 2.7.0 is our first release that compiled Java 7 class files. Hadoop 2.6.0 was compiled as Java 6. > Namenode Startup Failing When we add Jcarder.jar in class Path > -------------------------------------------------------------- > > Key: HDFS-8132 > URL: https://issues.apache.org/jira/browse/HDFS-8132 > Project: Hadoop HDFS > Issue Type: Bug > Affects Versions: 2.7.0 > Reporter: Brahma Reddy Battula > Assignee: Brahma Reddy Battula > > *{color:blue}Namenode while Startup Args{color}* ( Just added the jcarder > args) > exec /home/hdfs/jdk1.7.0_72/bin/java -Dproc_namenode -Xmx1000m > -Djava.net.preferIPv4Stack=true > -Dhadoop.log.dir=/opt/ClusterSetup/Hadoop2.7/install/hadoop/namenode/logs > -Dhadoop.log.file=hadoop.log > -Dhadoop.home.dir=/opt/ClusterSetup/Hadoop2.7/install/hadoop/namenode > -Dhadoop.id.str=hdfs -Dhadoop.root.logger=INFO,console > -Djava.library.path=/opt/ClusterSetup/Hadoop2.7/install/hadoop/namenode/lib/native > -Dhadoop.policy.file=hadoop-policy.xml -Djava.net.preferIPv4Stack=true > -Dhadoop.security.logger=INFO,RFAS -Dhdfs.audit.logger=INFO,NullAppender > {color:red}-javaagent:/opt/Jcarder/jcarder.jar=outputdir=/opt/Jcarder/Output/nn-jcarder{color} > -Dhadoop.security.logger=INFO,NullAppender > org.apache.hadoop.hdfs.server.namenode.NameNode > Setting outputdir to /opt/Jcarder/Output/nn-jcarder > Starting JCarder (2.0.0/6) agent > Opening for writing: /opt/Jcarder/Output/nn-jcarder/jcarder_events.db > Opening for writing: /opt/Jcarder/Output/nn-jcarder/jcarder_contexts.db > Not instrumenting standard library classes (AWT, Swing, etc.) > JCarder agent initialized > *{color:red}ERROR{color}* > {noformat} > Exception in thread "main" java.lang.VerifyError: Expecting a stackmap frame > at branch target 21 > Exception Details: > Location: > > org/apache/hadoop/hdfs/server/namenode/NameNode.createHAState(Lorg/apache/hadoop/hdfs/server/common/HdfsServerConstants$StartupOption;)Lorg/apache/hadoop/hdfs/server/namenode/ha/HAState; > @4: ifeq > Reason: > Expected stackmap frame at this location. > Bytecode: > 0000000: 2ab4 02d2 9900 112b b203 08a5 000a 2bb2 > 0000010: 030b a600 07b2 030d b0b2 030f b0 > at java.lang.Class.getDeclaredMethods0(Native Method) > at java.lang.Class.privateGetDeclaredMethods(Class.java:2615) > at java.lang.Class.getMethod0(Class.java:2856) > at java.lang.Class.getMethod(Class.java:1668) > at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494) > at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486) > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)