访问嵌套文件夹中的HBase表时是否存在java.lang.NumberFormatException?

访问嵌套文件夹中的HBase表时是否存在java.lang.NumberFormatException?,hbase,Hbase,使用apachehue在某些HDFS位置/path/to/my/hbasetable创建hbase表。然而,我在尝试通过色调以外的任何方式访问它时遇到了问题。在Hue中,我只是使用hbase数据浏览器导航到该表,但当我尝试从命令行确认该表存在时,会抛出一个错误: [me@mapr001 example]$ curl -I -H \ "Accept: text/mxl" \ "http://node001:8080/etl/internal/example/raw-ingest/version-1

使用apachehue在某些HDFS位置/path/to/my/hbasetable创建hbase表。然而,我在尝试通过色调以外的任何方式访问它时遇到了问题。在Hue中,我只是使用hbase数据浏览器导航到该表,但当我尝试从命令行确认该表存在时,会抛出一个错误:

[me@mapr001 example]$ curl -I -H \
"Accept: text/mxl" \
"http://node001:8080/etl/internal/example/raw-ingest/version-1/file-metastore/schema"

HTTP/1.1 500 java.lang.NumberFormatException: For input string: "raw-ingest"
Content-Type: text/html; charset=iso-8859-1
Cache-Control: must-revalidate,no-cache,no-store
Content-Length: 9374
并在尝试访问样本行(以色调添加到表中)时出现类似错误

[me@mapr001示例]$curl-vi-xget-H\
“接受:文本/mxl”\
"http://mapr001:8080/etl/internal/example/raw-摄取/version-1/file metastore/customId001/cf:main系列“
*即将连接()到mapr001端口8080(#0)
*正在尝试172.18.4.100。。。
*连接至mapr001(172.18.4.100)端口8080(#0)
>GET/etl/internal/example/raw inset/version-1/file metastore/ede3233777492e4a00442b61c7035820a55f16e669daaa29fc6baecf09b397f8X1525813886Xv1/cf:沿袭HTTP/1.1
>用户代理:curl/7.29.0
>主持人:mapr001:8080
>接受:text/mxl
>
"http://<restserver>:<port>/<tablename>/schema"
java.lang.NumberFormatException:对于输入字符串:“原始摄取”

原因:java.lang.IllegalArgumentException:java.lang.NumberFormatException:对于输入字符串:“原始摄取” 位于org.apache.hadoop.hbase.rest.RowSpec.parseTimestamp(RowSpec.java:170) 位于org.apache.hadoop.hbase.rest.RowSpec.init(RowSpec.java:62) ....‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍

(其中hbase表称为“file metastore”,前面路径的其余部分从HDFS根开始)您可以看到出现一些异常,抱怨路径的某些部分。直到现在才使用hbase,但我怀疑还有比输入字符串更深层的问题。hbase是否希望在某个预设的根目录(即hbase site.xml中的
hbase.rootdir
config)或其他地方启动?如果有人知道这里发生了什么,以及我如何解决它,我将不胜感激。谢谢。

REST api希望请求的格式是

"http://mapr001:8080/%2fetl%2finternal%2fexample%2fraw-ingest%2fversion-1%2ffilemetastore/schema/"
/
s编码为
%2f
s的

解决了这个问题

"http://node001:8080/etl/internal/example/raw-ingest/version-1/file-metastore/schema/"
"http://mapr001:8080/%2fetl%2finternal%2fexample%2fraw-ingest%2fversion-1%2ffilemetastore/schema/"