Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Pig service check is failing with "Can't get Master Kerberos principal for use as renewer" error

Pig service check is failing with "Can't get Master Kerberos principal for use as renewer" error

New Contributor

Pig service check is failing with "Can't get Master Kerberos principal for use as renewer" error .

Logs:

to follow: Can't get Master Kerberos principal for use as renewer at org.apache.pig.newplan.logical.visitor.InputOutputFileValidatorVisitor.visit(InputOutputFileValidatorVisitor.java:95) at org.apache.pig.newplan.logical.relational.LOStore.accept(LOStore.java:66) at org.apache.pig.newplan.DepthFirstWalker.depthFirst(DepthFirstWalker.java:64) at org.apache.pig.newplan.DepthFirstWalker.depthFirst(DepthFirstWalker.java:66) at org.apache.pig.newplan.DepthFirstWalker.depthFirst(DepthFirstWalker.java:66) at org.apache.pig.newplan.DepthFirstWalker.walk(DepthFirstWalker.java:53) at org.apache.pig.newplan.PlanVisitor.visit(PlanVisitor.java:52) at org.apache.pig.newplan.logical.relational.LogicalPlan.validate(LogicalPlan.java:212) at org.apache.pig.PigServer$Graph.compile(PigServer.java:1808) at org.apache.pig.PigServer$Graph.access$300(PigServer.java:1484) at org.apache.pig.PigServer.execute(PigServer.java:1397) at org.apache.pig.PigServer.executeBatch(PigServer.java:456) at org.apache.pig.PigServer.executeBatch(PigServer.java:439) at org.apache.pig.tools.grunt.GruntParser.executeBatch(GruntParser.java:171) at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:234) at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:205) at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:81) at org.apache.pig.Main.run(Main.java:631) at org.apache.pig.Main.main(Main.java:177) 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.run(RunJar.java:221) at org.apache.hadoop.util.RunJar.main(RunJar.java:136) Caused by: java.io.IOException: Can't get Master Kerberos principal for use as renewer at org.apache.hadoop.mapreduce.security.TokenCache.obtainTokensForNamenodesInternal(TokenCache.java:116) at org.apache.hadoop.mapreduce.security.TokenCache.obtainTokensForNamenodesInternal(TokenCache.java:100) at org.apache.hadoop.mapreduce.security.TokenCache.obtainTokensForNamenodes(TokenCache.java:80) at org.apache.hadoop.mapreduce.lib.output.FileOutputFormat.checkOutputSpecs(FileOutputFormat.java:142) at org.apache.pig.newplan.logical.visitor.InputOutputFileValidatorVisitor.visit(InputOutputFileValidatorVisitor.java:69) ... 24 more ========================================================================

2 REPLIES 2

Re: Pig service check is failing with "Can't get Master Kerberos principal for use as renewer" error

New Contributor

HDP 2.4 ambari 2.4.2

Highlighted

Re: Pig service check is failing with "Can't get Master Kerberos principal for use as renewer" error

Cloudera Employee
@tauqeer khan

Could you please post your Pig view configuration?

Also check the value what have been used in WebHDFS Authentication. It has to be like

auth=KERBEROS;proxyuser=<ambari-user-principal>

Example: auth=KERBEROS;proxyuser=ambari-server-hdp25@KRBSRV.COM

From Ambari check in Custom core-site if you have set the proxy enabled for that user

Example:

hadoop.proxyuser.ambari-server-hdp25.groups = *

hadoop.proxyuser.ambari-server-hdp25.hosts = *

Don't have an account?
Coming from Hortonworks? Activate your account here