title: How to export Hbase table to MySql table
body: <p>I am trying exporting Hbase table to mysql table using sqoop.</p>
  
  <p>Following is my query:</p>
  
  <pre><code>&gt; sqoop-export 
  &gt; --connect jdbc:mysql://mysqlserver_ip:3306/mysqldb 
  &gt; --username user 
  &gt; --password pwd 
  &gt; --table mysqltbl 
  &gt; --update-key empid 
  &gt; --export-dir hostname:60030/hbase/tblfromhbase
  </code></pre>
  
  <blockquote>
    <p>where hostname:60030 is my Hbase root dir path and port.</p>
  </blockquote>
  
  <p>error coming to me are</p>
  
  <pre><code>&gt; 1) ERROR security.UserGroupInformation: PriviledgedActionException
  &gt; as:hbase (auth:SIMPLE) cause:java.io.IOException:Failed on local
  &gt; exception: com.google.protobuf.InvalidProtocolBufferException:Protocol
  &gt; message end-group tag did not match expected tag.; Host Details :
  &gt; local host is: "hostname/ip";destination host is: "hostname":60030;
  &gt; 
  &gt; 2) ERROR tool.ExportTool: Encountered IOException running export job:
  &gt; java.io.IOException: Failed on local exception:
  &gt; com.google.protobuf.InvalidProtocolBufferException:Protocol message
  &gt; end-group tag did not match expected tag.; Host Details :local host
  &gt; is: "hostname/ip"; destination host is: "hostname":60030;
  </code></pre>
  
  <p>Thanks in advance.</p>