FileSystemContext.acquireMasterClient() cause NPE while we create FileSystem.create()

Description

Exception -
java.lang.NullPointerException: null
at alluxio.client.file.FileSystemContext.acquireMasterClient(FileSystemContext.java:285)
at alluxio.client.file.BaseFileSystem.exists(BaseFileSystem.java:187)
at alluxio.client.file.BaseFileSystem.exists(BaseFileSystem.java:181)
at alluxio.hadoop.AbstractFileSystem.create(AbstractFileSystem.java:183)
at alluxio.hadoop.FileSystem.create(FileSystem.java:27)
at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:909)
at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:890)
at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:816)

Environment

None

Activity

Show:
navya k
May 31, 2019, 9:54 AM

Hi , I’m trying to upload multiple files simultaneously to alluxioFileSystem. Ex: if I upload 10 files, 2-3 file upload fails due to an above-given exception.

And I’m using below api:

FileSystem.get(hdfsConfiguration)

fileSystem.create(alluxioFilePath, (short) 1)

 

hdfsConfiguration contains

"[fs.alluxio.impl]": alluxio.hadoop.FileSystem"[fs.AbstractFileSystem.alluxio.impl]": alluxio.hadoop.AlluxioFileSystem

 

Let me know if you need more info.

Haoyuan Li
May 31, 2019, 5:46 PM

Thanks for the info. Which version were you using? 1.8.0, 1.8.1, or 2.0.0-RC1?

navya k
June 2, 2019, 4:09 PM

I’m using alluxio 1.8.0 version

Bin Fan
June 3, 2019, 5:52 AM

Thanks for the info. , we are actually migrating to use Github Issues

can you port your issue to here

and Alluxio maintainers will iterate with you there

navya k
June 3, 2019, 6:25 AM

I have created a bug in Github also.

link -

 

Assignee

Calvin Jia

Reporter

navya k

Labels

None

Components

Affects versions

Priority

Major
Configure