hortonworks hadoop沙盒和表格

8yoxcaq7  于 2021-06-03  发布在  Hadoop
关注(0)|答案(1)|浏览(380)

我正在尝试将tableau连接到hortonworks hadoop沙盒,如下所述:http://hortonworks.com/kb/how-to-connect-tableau-to-hortonworks-sandbox/ tableau能够将虚拟服务器视为数据源,并准确地列出可用的模式和表。
但是,当尝试选择任何表或预览其数据时,它会显示一个错误弹出窗口 'An error has occurred while loading the data. No such table [default].[tablename]' 其中default是schema,tablename是我试图查看的表的名称。
下面是当我从vm沙盒中的终端窗口运行ifconfig时返回的内容。tableau正在通过192.168.50.128连接到vm。

eth3      Link encap:Ethernet  HWaddr 00:0C:29:EB:B9:DC  
          inet addr:192.168.50.128  Bcast:192.168.50.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:feeb:b9dc/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:42011 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9750 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:15123871 (14.4 MiB)  TX bytes:4019795 (3.8 MiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:5185579 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5185579 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:2054785522 (1.9 GiB)  TX bytes:2054785522 (1.9 GiB)

指南指出 Enter the IP address of the Sandbox VM (typically 192.168.56.101) 这是不同的。
这个ip差异是问题的根源还是我忽略了什么?我假设,因为它可以看到模式和表,所以这并不重要。

voj3qocg

voj3qocg1#

原来这是一个权限问题,我可以通过以下指南来解决:http://diveintobigdata.blogspot.com/2015/10/error-occurred-executing-hive-query.html
然而,每当我被要求输入localhost时,比如访问ambari时,我都必须用192.168.50.128替换localhost,我上面提到的是在终端中执行ifconfig时看到的ip。
此外,在指南的步骤1中,提供的文件路径中不应存在任何空格。

相关问题