Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to Load Text file into Hbase in Linux Machine
    primarykey
    data
    text
    <p>How to load text file which is i my local machine to a remote Hbase. I refered the above command but i am really confused with the command</p> <pre><code>hadoop jar &lt;path to hbase jar&gt; importtsv -Dimporttsv.columns=a,b,c '-Dimporttsv.separator=,' &lt;tablename&gt; &lt;inputdir&gt; </code></pre> <p>Where to address the path of the text file and table name and columns will be in text file. In text file i has the create and put statements, how to load and execute that file in Hbase shell. Please break my confusion if any 1 knows it.</p> <p>Script File:</p> <pre><code>create 'blogpostss', 'post', 'image' Run in HBase shell the following to add some data: put 'blogpostss', 'post1', 'post:title', 'Hello World' put 'blogpostss', 'post1', 'post:author', 'The Author' put 'blogpostss', 'post1', 'post:body', 'This is a blog post' put 'blogpostss', 'post1', 'image:header', 'image1.jpg' put 'blogpostss', 'post1', 'image:bodyimage', 'image2.jpg' put 'blogpostss', 'post2', 'post:title', 'Another Post' put 'blogpostss', 'post2', 'post:title', 'My Second Post' put 'blogpostss', 'post1', 'post:body', 'This is an updated blog postss' Following commands retrieve data: get 'blogpostss', 'post1' get 'blogpostss', 'post1', { COLUMN =&gt; 'post:title' } get 'blogpostss', 'post1', { COLUMN =&gt; 'post:title', VERSIONS =&gt; 4 } get 'blogpostss', 'post1', { COLUMNS =&gt; 'post:body', VERSIONS =&gt; 3 } get 'blogpostss', 'post2' get 'blogpostss', 'post2', { COLUMN =&gt; 'post:title' } get 'blogpostss', 'post2', { COLUMN =&gt; 'post:title', VERSIONS =&gt; 4 } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload