[
https://issues.apache.org/jira/browse/SPARK-11575?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14995802#comment-14995802
]
Sean Owen commented on SPARK-11575:
-----------------------------------
There have been a few discussions on this, sounding like
https://issues.apache.org/jira/browse/SPARK-10528
Aren't you reporting a problem in Hive? if it were a casting / type problem you
would not have an NPE. I'm not clear this is Spark-related.
> 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]