Ibm cloud 如何在BigInsight Bluemix(或任何其他Ambari视图)中创建配置单元视图

Ibm cloud 如何在BigInsight Bluemix(或任何其他Ambari视图)中创建配置单元视图,ibm-cloud,biginsights,Ibm Cloud,Biginsights,我想将HiveView实例添加到我的Bluemix BigInsight(基本)实例中 从Ambari web界面获取的知识中心指南,单击Ambari菜单项“管理”>“管理Ambari”以打开“管理”窗口。() 那么,在IBM BigInsight Bluemix实例上永远不会显示该菜单?那么如何进行呢?有没有办法让菜单显示出来?是否不可能在IBM BigInsight bluemix实例中获取HiveView?顺便说一句,它的defaut Hortonworks沙箱使用群集创建的用户只有amb

我想将HiveView实例添加到我的Bluemix BigInsight(基本)实例中

从Ambari web界面获取的知识中心指南,单击Ambari菜单项“管理”>“管理Ambari”以打开“管理”窗口。()


那么,在IBM BigInsight Bluemix实例上永远不会显示该菜单?那么如何进行呢?有没有办法让菜单显示出来?是否不可能在IBM BigInsight bluemix实例中获取HiveView?顺便说一句,它的defaut Hortonworks沙箱使用群集创建的用户只有ambari ui只读访问权限。无法使用群集用户添加配置单元视图。要使用hive,您可以使用ssh和ambari URL的主机名登录到shell帐户,并使用hive客户端或beeline客户端。 您可以使用jdbc连接并运行查询。 连接信息可从创建集群的bluemix UI的“集群详细信息”页面获得

您可以使用有关使用beeline客户端进行连接的文档中给出的示例:

根据建议,我同意链接页面可以更改,或者链接本身可能无法访问,链接内容如下所述:

通过直线客户端运行配置单元命令

HiveServer2支持名为Beeline的命令shell来使用配置单元命令

Beeline连接到HiveServer2,但不需要在与客户端相同的计算机上安装配置单元库。Beeline是一个瘦客户机,它也使用Hive JDBC驱动程序。Beeline通过HiveServer2运行查询,HiveServer2允许多个并发客户端连接并支持身份验证

As your_username, open the Beeline client from the shell node:

@shl01 conf]$ beeline

Connect to the Hive JDBC:

beeline>!connect jdbc:hive2://<hostname>:10000/;ssl=true;

When prompted, provide a user name and password to connect to the database. Specify the user credentials that you provided when you created the cluster. After you are connected to the database, you can run Hive SQL commands.
Create a table through the Beeline client:

0: jdbc:hive2://bi-hadoop-prod-xxxx.bi.services> create table tab1(c1 int);

The value of xxxx is a unique number that is assigned to your cluster to identify the host name of your cluster's management node.
Insert records into the table:

0: jdbc:hive2://bi-hadoop-prod-xxxx.bi.services> insert into tab1 values(1);

Select records from the table:

0: jdbc:hive2://bi-hadoop-prod-xxxx.bi.services> select * from tab1;
作为您的_用户名,从shell节点打开直线客户端:
@shl01形态]$beeline
连接到配置单元JDBC:
直线>!连接jdbc:hive2://:10000/;ssl=true;
出现提示时,请提供用户名和密码以连接到数据库。指定创建群集时提供的用户凭据。连接到数据库后,可以运行配置单元SQL命令。
通过直线客户端创建表:
0:jdbc:hive2://bi-hadoop-prod-xxxx.bi.services>创建表tab1(c1 int);
xxxx的值是分配给群集的唯一编号,用于标识群集管理节点的主机名。
将记录插入表中:
0:jdbc:hive2://bi-hadoop-prod-xxxx.bi.services>insert-into-tab1值(1);
从表中选择记录:
0:jdbc:hive2://bi-hadoop-prod-xxxx.bi.services>从表1中选择*;