[ 
https://issues.apache.org/jira/browse/SPARK-11575?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14995815#comment-14995815
 ] 

Ali Beydoun commented on SPARK-11575:
-------------------------------------

Thanks for pointing out that thread. I've already made the changes mentioned, 
but still getting NPE on the getPermission call, which is very strange since 
the calling object exists and has permissions set to rwxrwxrwx.  I'll refile 
under Hive.

> HiveContext fails to initialize under Java/Windows
> --------------------------------------------------
>
>                 Key: SPARK-11575
>                 URL: https://issues.apache.org/jira/browse/SPARK-11575
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 1.5.1
>         Environment: Windows 8 64 bit
> Java 8
>            Reporter: Ali Beydoun
>
> Working with Spark 1.5.1 in Java/Windows environment.  Started with 
> SQLContext, everything works perfectly. Converted to HiveContext, now I get a 
> NullPointerException on this line
> SessionState.java (599):
> FsPermission currentHDFSDirPermission = 
> fs.getFileStatus(rootHDFSDirPath).getPermission();
> Even though the directory exists and has the right permissions (777), the 
> code fails to call getPermission().  It seems that the fs.getFileStatus call 
> is not casting to the correct type (FileStatus), and making the 
> getPermission() call return s a NullPointerException.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to