[ https://issues.apache.org/jira/browse/AMBARI-17102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15415621#comment-15415621 ]
Keta Patel commented on AMBARI-17102: ------------------------------------- The configuration for Pig View in Kerberized environment is documented in the following blog: https://developer.ibm.com/hadoop/2016/08/08/ambari-pig-view-kerberos-enabled-clusters/ No changes in the code was required for the view to get working, only the configuration had to be performed correctly. > Pig view fails when execute/explain/syntax check in kerberos environment > ------------------------------------------------------------------------ > > Key: AMBARI-17102 > URL: https://issues.apache.org/jira/browse/AMBARI-17102 > Project: Ambari > Issue Type: Bug > Components: ambari-views, contrib > Affects Versions: trunk > Reporter: Keta Patel > Assignee: Keta Patel > > Steps to reproduce the issue: > 1. Install a cluster containing Pig and Hive services. > 2. Create a Pig View Instance following the steps from > http://docs.hortonworks.com/HDPDocuments/Ambari-2.1.0.0/bk_ambari_views_guide/bk_ambari_views_guide-20150721.pdf > 3. Go to the Pig View instance and create a new script with some content and > save it. I have used the following content in my script: > A = load '/tmp/passwd' using PigStorage(':'); > 4. Kerberize the Cluster from Admin -> Kerberos page > 5. Kerberize the ambari-server following the link > https://docs.hortonworks.com/HDPDocuments/Ambari-2.1.2.1/bk_Ambari_Security_Guide/content/_optional_set_up_kerberos_for_ambari_server.html > 6. Make sure to update the Pig View configuration with the correct Settings > for "WebHDFS Authentication" and "WebHCat Username". Also ensure that the > "Cluster Configuration" is "Custom" with the correct values set for "WebHDFS > FileSystem URI*", "WebHCat Hostname" and "WebHCat Port". > 7. Go to the Pig View instance and open the script created earlier. Click the > "Execute" button to run the script. > 8. The following error shows up: > java.lang.IllegalArgumentException: Path segment is null > java.lang.IllegalArgumentException: Path segment is null > at > com.sun.jersey.api.uri.UriBuilderImpl.appendPath(UriBuilderImpl.java:547) > at > com.sun.jersey.api.uri.UriBuilderImpl.appendPath(UriBuilderImpl.java:542) > at com.sun.jersey.api.uri.UriBuilderImpl.path(UriBuilderImpl.java:267) > at com.sun.jersey.api.client.WebResource.path(WebResource.java:390) > at > org.apache.ambari.view.pig.templeton.client.TempletonApi.checkJob(TempletonApi.java:128) > at > org.apache.ambari.view.pig.resources.jobs.JobResourceManager.retrieveJobStatus(JobResourceManager.java:245) > at > org.apache.ambari.view.pig.resources.jobs.JobService.getJob(JobService.java:101) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) -- This message was sent by Atlassian JIRA (v6.3.4#6332)