Created
September 1, 2017 11:05
-
-
Save mannharleen/d004a327c52eb480d8cb37f6208d58bf to your computer and use it in GitHub Desktop.
Error: java.lang.RuntimeException: java.lang.RuntimeException: The root scratch dir: /tmp/hive on HDFS should be writable. Current permissions are: rw-rw-rw-
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Spark and hive on windows environment | |
Error: java.lang.RuntimeException: java.lang.RuntimeException: The root scratch dir: /tmp/hive on HDFS should be writable. Current permissions are: rw-rw-rw- | |
Pre-requisites: Have winutils.exe placed in c:\winutils\bin\ | |
Resolve as follows: | |
*/ | |
C:\user>c:\Winutils\bin\winutils.exe ls | |
FindFileOwnerAndPermission error (1789): The trust relationship between this workstation and the primary domain failed. | |
// Make sure you are connected to the domain controller, in my case I had to connect using VPN | |
C:\user>c:\Winutils\bin\winutils.exe ls c:\user\hive | |
drwx------ 1 BUILTIN\Administrators PANTAIHQ\Domain Users 0 Aug 30 2017 c:\user\hive | |
C:\user>c:\Winutils\bin\winutils.exe chmod 777 c:\user\hive | |
C:\user>c:\Winutils\bin\winutils.exe ls c:\user\hive | |
drwxrwxrwx 1 BUILTIN\Administrators PANTAIHQ\Domain Users 0 Aug 30 2017 c:\user\hive |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment