You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tajo.apache.org by hy...@apache.org on 2015/03/12 02:09:48 UTC

svn commit: r1666059 - /tajo/site/docs/0.10.0/jdbc_driver.html

Author: hyunsik
Date: Thu Mar 12 01:09:47 2015
New Revision: 1666059

URL: http://svn.apache.org/r1666059
Log:
Update 0.10.0 jdbc

Modified:
    tajo/site/docs/0.10.0/jdbc_driver.html

Modified: tajo/site/docs/0.10.0/jdbc_driver.html
URL: http://svn.apache.org/viewvc/tajo/site/docs/0.10.0/jdbc_driver.html?rev=1666059&r1=1666058&r2=1666059&view=diff
==============================================================================
--- tajo/site/docs/0.10.0/jdbc_driver.html (original)
+++ tajo/site/docs/0.10.0/jdbc_driver.html Thu Mar 12 01:09:47 2015
@@ -30,7 +30,7 @@
   
     <link rel="top" title="Apache Tajo 0.10.0 documentation" href="index.html"/>
         <link rel="next" title="Tajo Client API" href="tajo_client_api.html"/>
-        <link rel="prev" title="HBase Integration" href="hbase_integration.html"/> 
+        <link rel="prev" title="OpenStack Swift Integration" href="swift_integration.html"/> 
 
   
   <script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js"></script>
@@ -145,11 +145,17 @@
 <li class="toctree-l2"><a class="reference internal" href="hbase_integration.html#usage">Usage</a></li>
 </ul>
 </li>
+<li class="toctree-l1"><a class="reference internal" href="swift_integration.html">OpenStack Swift Integration</a><ul>
+<li class="toctree-l2"><a class="reference internal" href="swift_integration.html#swift-configuration">Swift configuration</a></li>
+<li class="toctree-l2"><a class="reference internal" href="swift_integration.html#hadoop-configurations">Hadoop configurations</a></li>
+<li class="toctree-l2"><a class="reference internal" href="swift_integration.html#tajo-configuration">Tajo configuration</a></li>
+<li class="toctree-l2"><a class="reference internal" href="swift_integration.html#querying-on-swift">Querying on Swift</a></li>
+</ul>
+</li>
 <li class="toctree-l1 current"><a class="current reference internal" href="">Tajo JDBC Driver</a><ul>
 <li class="toctree-l2"><a class="reference internal" href="#how-to-get-jdbc-driver">How to get JDBC driver</a></li>
 <li class="toctree-l2"><a class="reference internal" href="#setting-the-classpath">Setting the CLASSPATH</a></li>
 <li class="toctree-l2"><a class="reference internal" href="#an-example-jdbc-client">An Example JDBC Client</a></li>
-<li class="toctree-l2"><a class="reference internal" href="#faq">FAQ</a></li>
 </ul>
 </li>
 <li class="toctree-l1"><a class="reference internal" href="tajo_client_api.html">Tajo Client API</a></li>
@@ -195,35 +201,30 @@ which enables Java applciations to easil
 In this section, we explain how to get JDBC driver and an example code.</p>
 <div class="section" id="how-to-get-jdbc-driver">
 <h2>How to get JDBC driver<a class="headerlink" href="#how-to-get-jdbc-driver" title="Permalink to this headline">¶</a></h2>
+<div class="section" id="direct-download">
+<h3>Direct Download<a class="headerlink" href="#direct-download" title="Permalink to this headline">¶</a></h3>
+<p>You can directly download a JDBC driver jar file (<tt class="docutils literal"><span class="pre">tajo-jdbc-x.y.z.jar</span></tt>) from <a class="reference external" href="http://tajo.apache.org/downloads.html">Downloads</a>.</p>
+</div>
 <div class="section" id="from-binary-distribution">
 <h3>From Binary Distribution<a class="headerlink" href="#from-binary-distribution" title="Permalink to this headline">¶</a></h3>
-<p>Tajo binary distribution provides JDBC jar file and its dependent JAR files.
-Those files are located in <tt class="docutils literal"><span class="pre">${TAJO_HOME}/share/jdbc-dist/</span></tt>.</p>
+<p>Tajo binary distribution provides JDBC jar file located in <tt class="docutils literal"><span class="pre">${TAJO_HOME}/share/jdbc-dist/tajo-jdbc-x.y.z.jar</span></tt>.</p>
 </div>
 <div class="section" id="from-building-source-code">
 <h3>From Building Source Code<a class="headerlink" href="#from-building-source-code" title="Permalink to this headline">¶</a></h3>
 <p>You can build Tajo from the source code and then get JAR files as follows:</p>
 <div class="highlight-bash"><div class="highlight"><pre><span class="nv">$ </span>tar xzvf tajo-x.y.z-src.tar.gz
 <span class="nv">$ </span>mvn clean package -DskipTests -Pdist -Dtar
-<span class="nv">$ </span>ls -l tajo-dist/target/tajo-x.y.z/share/jdbc-dist
+<span class="nv">$ </span>ls -l tajo-dist/target/tajo-x.y.z/share/jdbc-dist/tajo-jdbc-x.y.z.jar
 </pre></div>
 </div>
 </div>
 </div>
 <div class="section" id="setting-the-classpath">
 <h2>Setting the CLASSPATH<a class="headerlink" href="#setting-the-classpath" title="Permalink to this headline">¶</a></h2>
-<p>In order to use the JDBC driver, you should set the jar files included in
-<tt class="docutils literal"><span class="pre">tajo-dist/target/tajo-x.y.z/share/jdbc-dist</span></tt> to your <tt class="docutils literal"><span class="pre">CLASSPATH</span></tt>.
-In addition, you should add hadoop clsspath into your <tt class="docutils literal"><span class="pre">CLASSPATH</span></tt>.
-So, <tt class="docutils literal"><span class="pre">CLASSPATH</span></tt> will be set as follows:</p>
-<div class="highlight-bash"><div class="highlight"><pre><span class="nv">CLASSPATH</span><span class="o">=</span>path/to/tajo-jdbc/*:path/to/tajo-site.xml:path/to/core-site.xml:path/to/hdfs-site.xml
+<p>In order to use the JDBC driver, you should add <tt class="docutils literal"><span class="pre">tajo-jdbc-x.y.z.jar</span></tt> in your <tt class="docutils literal"><span class="pre">CLASSPATH</span></tt>.</p>
+<div class="highlight-bash"><div class="highlight"><pre><span class="nv">CLASSPATH</span><span class="o">=</span>path/to/tajo-jdbc-x.y.z.jar:<span class="nv">$CLASSPATH</span>
 </pre></div>
 </div>
-<div class="admonition note">
-<p class="first admonition-title">Note</p>
-<p class="last">You must add the locations which include Tajo config files (i.e., <tt class="docutils literal"><span class="pre">tajo-site.xml</span></tt>) and
-Hadoop config files (i.e., <tt class="docutils literal"><span class="pre">core-site.xml</span></tt> and <tt class="docutils literal"><span class="pre">hdfs-site.xml</span></tt>) to your <tt class="docutils literal"><span class="pre">CLASSPATH</span></tt>.</p>
-</div>
 </div>
 <div class="section" id="an-example-jdbc-client">
 <h2>An Example JDBC Client<a class="headerlink" href="#an-example-jdbc-client" title="Permalink to this headline">¶</a></h2>
@@ -275,16 +276,6 @@ All tables are contained in <tt class="d
 </pre></div>
 </div>
 </div>
-<div class="section" id="faq">
-<h2>FAQ<a class="headerlink" href="#faq" title="Permalink to this headline">¶</a></h2>
-<div class="section" id="java-nio-channels-unresolvedaddressexception">
-<h3>java.nio.channels.UnresolvedAddressException<a class="headerlink" href="#java-nio-channels-unresolvedaddressexception" title="Permalink to this headline">¶</a></h3>
-<p>When retriving the final result, Tajo JDBC Driver tries to access HDFS data nodes.
-So, the network access between JDBC client and HDFS data nodes must be available.
-In many cases, a HDFS cluster is built in a private network which use private hostnames.
-So, the host names must be shared with the JDBC client side.</p>
-</div>
-</div>
 </div>
 
 
@@ -296,7 +287,7 @@ So, the host names must be shared with t
         <a href="tajo_client_api.html" class="btn btn-neutral float-right" title="Tajo Client API"/>Next <span class="fa fa-arrow-circle-right"></span></a>
       
       
-        <a href="hbase_integration.html" class="btn btn-neutral" title="HBase Integration"><span class="fa fa-arrow-circle-left"></span> Previous</a>
+        <a href="swift_integration.html" class="btn btn-neutral" title="OpenStack Swift Integration"><span class="fa fa-arrow-circle-left"></span> Previous</a>
       
     </div>
   
@@ -352,4 +343,4 @@ So, the host names must be shared with t
    
 
 </body>
-</html>
\ No newline at end of file
+</html>