通过Kerberos Impala连接将工作簿(twb | twbx)文件发布到Tableau

时间:2019-05-03 11:58:10

标签: python automation tableau tableau-server tableau-online

我需要将Tableau工作簿(twb和twbx格式)发布到Tableau Server。该工作簿使用Kerberos机制在内部连接到Impala。 我尝试使用Tableau Server Client Python(TSC)和Tabcmd来发布工作簿。但是,都没有成功。

我正在使用以下连接格式在.twb工作簿文件中连接Impala:

<div class="table-responsive">
          <table class="table table-hover team-schedule team-schedule--full">
            <thead>
              <tr>
                <th class="team-schedule__date"></th>
                <th class="team-schedule__versus"></th>
                <th class="team-schedule__status"></th>
                <th class="team-schedule__time"></th>
                <th class="team-schedule__compet"></th>
                <th class="team-schedule__venue"></th>
                <th class="team-schedule__tickets"></th>
              </tr>
            </thead>
            <tbody>


              <tr data-date="2019-05-27 00:00:00">
               <td class="team-schedule__date">2019-05-27</td>
                <td class="team-schedule__versus">
                  <div class="team-meta">
                    <figure class="team-meta__logo">
                      <img src="assets/ll.png">
                    </figure>
                    <div class="team-meta__info">
                      <h6 class="team-meta__name"></h6>
                      <span class="team-meta__place"></span>
                    </div>
                  </div>
                </td>
                <td class="team-schedule__versus">
                  <div class="team-meta">
                    <figure class="team-meta__logo">
                      <img src="assets/l.png">
                    </figure>
                    <div class="team-meta__info">
                      <h6 class="team-meta__name"></h6>
                      <span class="team-meta__place"></span>
                    </div>
                  </div>
                </td>
                <td class="team-schedule__status"></td>
                <td class="team-schedule__compet"></td>
                <td class="team-schedule__compet"></td>
                <td class="team-schedule__tickets"></td>
              </tr>


              <tr class="table-light" data-date="2019-05-30 00:00:00">
               <td class="team-schedule__date">2019-05-30</td>
                <td class="team-schedule__versus">
                  <div class="team-meta">
                    <figure class="team-meta__logo">
                      <img src="assets/t.png">
                    </figure>
                    <div class="team-meta__info">
                      <h6 class="team-meta__name"></h6>
                      <span class="team-meta__place"></span>
                    </div>
                  </div>
                </td>
                <td class="team-schedule__versus">
                  <div class="team-meta">
                    <figure class="team-meta__logo">
                      <img src="assets/n.png">
                    </figure>
                    <div class="team-meta__info">
                      <h6 class="team-meta__name"></h6>
                      <span class="team-meta__place"></span>
                    </div>
                  </div>
                </td>
                <td class="team-schedule__status"></td>
                <td class="team-schedule__compet"></td>
                <td class="team-schedule__compet"></td>
                <td class="team-schedule__tickets"></td>
              </tr>

            </tbody>
          </table>
        </div>                  

任何其他可以做到这一点的API都会有很大帮助!!!

1 个答案:

答案 0 :(得分:1)

Tableau支持与Impala / Hive(directions)的Kerberos连接。

如果您成功通过Desktop连接,则下一步将是直接从Desktop发布到服务器。如果可行,则可以开始查看API。

无论如何,API不会在发布时更改任何连接信息,因此您应该成功使用其中的任何一个。