我正在学习 BigTable 上的教程:https://cloud.google.com/bigtable/docs/hbase-shell-quickstart
当我尝试启动我的 Docker 镜像时,出现以下错误:
C:\dev\GoogleCloudBigtable-quickstart>docker run -it bigtable-hbase/bin/bash -c "hbase shell"
2015-05-07 18:11:52,366 WARN [main] util.NativeCodeLoader: Unable to load native-hadoop library for your platform...
using builtin-java classes where applicable NativeException: java.io.IOException:
java.lang.reflect.InvocationTargetException
initialize at /hbase/bin/../lib/ruby/hbase/hbase.rb:41
(root) at /hbase/bin/../bin/hirb.rb:118
2015-05-07 18:11:52,958 WARN [Thread-3] hbase.BigtableOptionsFactory:
Shutdown is commencing and you have open 1 connections.
Data could be lost if there are ongoing requests.
有什么建议吗?
最佳答案
关于 native-hadoop 库的警告是很常见的。 您可以按照这些 instructions 来解决此问题.但是,运行示例并不是必需的。
关于 hbase.rb 的下一个错误,通常在您的 hbase-site.xml 不正确时显示。
您需要在本地运行三四件事:
您需要将创建的凭据复制到与 keys.json 相同的文件夹(或将 Dockerfile 编辑为正确的名称)。
您需要在 hbase-site.xml 中设置您的 ProjectID、ClusterID 和 Zone
如果其中任何一个不正确,您将看到该错误。
通常会看到警告 hbase.BigtableOptionsFactory: Shutdown is comning and you have open xx connections.,在这种情况下是良性的。
关于hadoop - BigTable docker 镜像启动问题 : util. NativeCodeLoader: Unable to load native-hadoop library for your platform,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30108870/