简体   繁体   English

Hbase 远程 shell 命令

[英]Hbase remote shell command

I want to create a hbase shell in the remote server as below我想在远程服务器中创建一个 hbase shell,如下所示

[root@localhost ~]#` ssh root@<hostname> " echo 'create '\'"sample'\'"','\'"cf'\'"' | hbase shell -n "`

Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will
likely be removed in a future release
19/06/28 07:25:55 INFO Configuration.deprecation: hadoop.native.lib is deprecated.
Instead, use io.native.lib.available
ERROR SyntaxError: stdin:1: syntax error, unexpected null

create 'sample',\cf'
                ^

Can anyone help me with the syntax for this.任何人都可以帮我解决这个问题的语法。

Thanks in advance.提前致谢。

I Have fixed the above issue with EOF option like below我已经使用 EOF 选项解决了上述问题,如下所示

    ssh root@<hostname> <<-EOF
    echo " create 'table',schema "| hbase shell -n

EOF EOF

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM