Support Questions
Find answers, ask questions, and share your expertise

getting error while reading hbase snapshot through spark(scala)

getting error while reading hbase snapshot through spark(scala)

i am getting error while reading hbase snapshot through spark(scala).

Error:

java.lang.IllegalArgumentException: Wrong FS: hdfs://localhost:9000/user/hbase/d9d1b0a7-439d-46a8-984e-886705b5f9b7/data/default/test/fa6fe29976fca3f9be223db554ab22b4, expected: file:///

what parameter should be passed in path()

I passed /user/hbase after creating it in hdfs

val path = new Path("hdfs://localhost:9000/user/hbase")

1 REPLY 1

Re: getting error while reading hbase snapshot through spark(scala)

Expert Contributor

Hi @Tajinderpal Singh,

In the path of HDFS the port specified is 9000. Is it normal? Because the default port normally is 8020. Did you change the default port?

Also, it's specify localhost. If you have only one node, that should cause any issue but if you have multiple node you should specify the full name of the host (ex: blalba.blibli.com). As best practivce you should always use the full name.

Michel