Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue while Running Pig Job - Latest Azakaban #269

Open
boycode opened this issue Jun 21, 2017 · 2 comments
Open

Issue while Running Pig Job - Latest Azakaban #269

boycode opened this issue Jun 21, 2017 · 2 comments

Comments

@boycode
Copy link

boycode commented Jun 21, 2017

Running on HDP.

I was able to create the command,java jobtypes. but while running the pig job I am facing an hadoopsecurity . Struggling with this issue.

21-06-2017 21:32:33 IST pig INFO - Command: /home/platadmin/azkaban-exec-server-0.1.0-SNAPSHOT/plugins/jobtypes/execute-as-user platadmin java -Dazkaban.flowid=pig -Dazkaban.execid=84 -Dazkaban.jobid=pig -Xms64M -Xmx256M -cp /home/platadmin/azkaban-exec-server-0.1.0-SNAPSHOT/lib/azkaban-common-0.1.0-SNAPSHOT.jar:/home/platadmin/azkaban-exec-server-0.1.0-SNAPSHOT/plugins/jobtypes/pig/azkaban-jobtype-3.0.0.jar:/home/platadmin/azkaban-exec-server-0.1.0-SNAPSHOT/lib/azkaban-hadoop-security-plugin-0.1.0-SNAPSHOT.jar:/home/platadmin/azkaban-exec-server-0.1.0-SNAPSHOT/executions/84/A6_Sample_Pig/_resources_pig:/home/platadmin/azkaban-exec-server-0.1.0-SNAPSHOT/plugins/jobtypes/pig/pig-0.12.0-withouthadoop.jar:/usr/hdp/2.4.2.0-258/pig/lib/:/usr/hdp/2.4.2.0-258/pig/:/home/platadmin/azkaban-exec-server-0.1.0-SNAPSHOT/plugins/jobtypes/pig/$HADOOP_HOME/conf:/home/platadmin/azkaban-exec-server-0.1.0-SNAPSHOT/plugins/jobtypes/pig/$HADOOP_HOME/lib/:/home/platadmin/azkaban-exec-server-0.1.0-SNAPSHOT/plugins/jobtypes/pig/lib/ azkaban.jobtype.HadoopSecurePigWrapper -logfile /home/platadmin/azkaban-exec-server-0.1.0-SNAPSHOT/executions/84/A6_Sample_Pig/piglogfile454710543297702496.log /home/platadmin/azkabanpath/upload.pig
21-06-2017 21:32:33 IST pig INFO - Environment variables: {JOB_OUTPUT_PROP_FILE=/home/platadmin/azkaban-exec-server-0.1.0-SNAPSHOT/executions/84/A6_Sample_Pig/pig_output_3809097616448187317_tmp, JOB_PROP_FILE=/home/platadmin/azkaban-exec-server-0.1.0-SNAPSHOT/executions/84/A6_Sample_Pig/pig_props_4953922702774292643_tmp, KRB5CCNAME=/tmp/krb5cc__A6_Sample_Pig__pig__pig__84__platadmin, PIG_LOG_FILE=/home/platadmin/azkaban-exec-server-0.1.0-SNAPSHOT/executions/84/A6_Sample_Pig/piglogfile454710543297702496.log, JOB_NAME=pig}
21-06-2017 21:32:33 IST pig INFO - Working directory: /home/platadmin/azkaban-exec-server-0.1.0-SNAPSHOT/executions/84/A6_Sample_Pig
21-06-2017 21:32:33 IST pig INFO - Changing user: user: platadmin, uid: 1018, gid: 1018
21-06-2017 21:32:33 IST pig INFO - user command starting from: java
21-06-2017 21:32:33 IST pig INFO - Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Logger
21-06-2017 21:32:33 IST pig INFO - at azkaban.jobtype.HadoopSecurePigWrapper.(HadoopSecurePigWrapper.java:53)

My Settings are the following

  1. Copied the pig-0.12.0 and created a symlink pig.
  2. plugin.properties
    pig.listener.visualizer=false
    jobtype.classpath=${pig.home}/lib/,${pig.home}/
    pig.home=$PIG_HOME
    3)private.properties
    jobtype.classpath=${hadoop.home}/conf,${hadoop.home}/lib/,lib/
    jobtype.class=azkaban.jobtype.HadoopPigJob
  3. Common.properties
    hadoop.home=$HADOOP_HOME
    pig.home=$PIG_HOME
    execute.as.user=true

hadoop.home=$HADOOP_HOME
pig.home=$PIG_HOME
execute.as.user=true
azkaban.native.lib=/home/platadmin/azkaban-exec-server-0.1.0-SNAPSHOT/plugins/jobtypes

pig.job

type=pig
pig.script=/home/platadmin/azkabanpath/upload.pig
pig.home=/usr/hdp/2.4.2.0-258/pig
obtain.binary.token=false
user.to.proxy=platadmin

This is the only settings done. Can you please help

Thanks,
Vishnu

@boycode
Copy link
Author

boycode commented Jun 28, 2017

@Keris
Copy link

Keris commented Nov 2, 2017

Hi @boycode , could you tell me the version of plugin you used? I have problems with building the latest plugin. Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants