使用microstrategy连接无身份验证apache配置单元

tpgth1q7  于 2021-06-02  发布在  Hadoop
关注(0)|答案(1)|浏览(454)

我已经安装了microstrategy bi工具和带有hadoop服务的apachehive-1.1.x。
起动 hiveserver2 以及 hadoop services . 测试了连接,工作正常。我没有使用任何身份验证来运行此服务。
是否可以选择将非sasl apache配置单元服务器与microstrategy连接?没有用户和密码就无法在微策略中创建dsn。
我使用以下步骤连接apachehive“addnewdatasource->hadoop->dsnless datasource->apachehive”

如果我在用户和密码中给出任何未知值,则表示抛出以下错误

There is an error. Details
(Database error <5>: Connect failed. Error type: Odbc error. Odbc operation 
attempted: SQLDriverConnect. [S1000:5: on HDBC] [MicroStrategy][ThriftExtension] 
(5) Error occurred while contacting server: No more data to read.. This could be 
because you are trying to establish a non-SSL connection to a SSL-enabled 
server.
2eafrhcq

2eafrhcq1#

我在hive-site.xml中发现了这个问题,因为hive.server2.authentication值必须用作none。 NOSASL 是原始传输,具有用户名和密码。
在hive-site.xml中添加以下属性

<property>
    <name>hive.server2.authentication</name>
    <value>NONE</value>
    <description>
      Expects one of [nosasl, none, ldap, kerberos, pam, custom].
      Client authentication types.
        NONE: no authentication check
        LDAP: LDAP/AD based authentication
        KERBEROS: Kerberos/GSSAPI authentication
        CUSTOM: Custom authentication provider
                (Use with property hive.server2.custom.authentication.class)
        PAM: Pluggable authentication module
        NOSASL:  Raw transport
    </description>
  </property>

相关问题