2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

hdfsに接続するユーザーを指定する

Last updated at Posted at 2017-06-27

リモートからhdfsに接続するときに接続元のユーザーでアクセスしようとするので、権限がなければ、Permission deniedエラーが出る。以下の例だとhdfsユーザーのディレクトリにdrwtsn64がmkdirをしようとしたが権限がないので怒られている。

 Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
mkdir: Permission denied: user=drwtsn64, access=WRITE, inode="/user/drwtsn64/demo":hdfs:hdfs:drwxr-xr-x

その場合はHADOOP_USER_NAMEにユーザー名を指定してアクセスすればよい。

HADOOP_USER_NAME=hdfs hdfs dfs -mkdir -p /user/drwtsn64/demo
2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?