{"id":102,"date":"2013-09-18T16:26:59","date_gmt":"2013-09-18T14:26:59","guid":{"rendered":"http:\/\/andreikucharavy.com\/L3Cache\/?p=102"},"modified":"2014-03-16T23:44:38","modified_gmt":"2014-03-16T22:44:38","slug":"installing-titandb-on-a-personal-machine","status":"publish","type":"post","link":"https:\/\/andreikucharavy.com\/L3Cache\/installing-titandb-on-a-personal-machine\/","title":{"rendered":"Installing TitanDB on a personal machine"},"content":{"rendered":"<p>Just to play around.<\/p>\n<h3><strong>Step1:<\/strong> Install HBase:<\/h3>\n<p>follow\u00a0<a href=\"http:\/\/hbase.apache.org\/book\/quickstart.html\">http:\/\/hbase.apache.org\/book\/quickstart.html<\/a>,<\/p>\n<p>configuration variables:<\/p>\n<pre>hbase.rootdir = \/opt\/hadoop_hb\/hbase\r\n<span style=\"font-size: 0.857142857rem; line-height: 1.714285714;\">hbase.zookeeper.property.dataDir =\u00a0\/opt\/hadoop_hb\/zookeeper<\/span><\/pre>\n<p>putting it to the \/opt\/ file allows other users (such as specific database-attributed users) to access the necessary files without having to mix up with my \/usr\/ directory files.<\/p>\n<p><strong>Attention:<\/strong>\u00a0since \/opt\/ belongs to root don&#8217;t forget to<\/p>\n<pre>sudo mkdir \/opt\/hadoop_hb\r\nsudo chown &lt;your_username&gt; \/opt\/hadoop_hb<\/pre>\n<p>if you want to play with hbase from it&#8217;s shell<\/p>\n<p><strong>Attention:<\/strong> if youy are using Ubuntu, you will need to modify machine loopback, so that \/etc\/hosts look like:<\/p>\n<pre>127.0.0.1 localhost \r\n127.0.0.1 your_machine_name<\/pre>\n<p>Now you can start the hbase by typing<\/p>\n<pre>HBASE_HOME\/bin\/start-hbase.sh<\/pre>\n<p>and check if it is running by typing \u00a0in your browser<\/p>\n<pre>http:\/\/localhost:60010<\/pre>\n<p>(unless you&#8217;ve changed the default port h base connects itself to)<\/p>\n<h3><strong>Step2:<\/strong>\u00a0Install Elasticsearch:<\/h3>\n<p>For this download the elasticsearch.deb package from ElasticSearch official download website and run<\/p>\n<pre>sudo dpckg -i elasticsearch.deb<\/pre>\n<p>This will install the elasticsearch on your machine and add it to services launched from the start. Now you can check if it is working by typing in your browser (unless you&#8217;ve changed the default ports):<\/p>\n<pre>http:\/\/localhost:9200<\/pre>\n<h3><strong>Step3:<\/strong> Install TitanDB:<\/h3>\n<p>Once the HBase have been installed, download the TitanDB-Hbase .tar.gz and upack it into your directory of choice. once you&#8217;ve done with it, you can connect to it via gremling by typing<\/p>\n<pre> gremlin&gt; g = TitanFactory.open('bin\/hbase-es.local')<\/pre>\n<p>to start it as a part of the embedded rexter server, configure type:<\/p>\n<pre>.\/bin\/titan.sh config\/titan-server-rexster.xml bin\/hbase-es.local<\/pre>\n<p>Now you can check that the server is up and running by typing\u00a0in your browser<\/p>\n<pre>http:\/\/localhost:8182\/graphs<\/pre>\n<p>You&#8217;re done!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Just to play around. Step1: Install HBase: follow\u00a0http:\/\/hbase.apache.org\/book\/quickstart.html, configuration variables: hbase.rootdir = \/opt\/hadoop_hb\/hbase hbase.zookeeper.property.dataDir =\u00a0\/opt\/hadoop_hb\/zookeeper putting it to the \/opt\/ file allows other users (such as specific database-attributed users) to access the necessary files without having to mix up with my \/usr\/ directory files. Attention:\u00a0since \/opt\/ belongs to root don&#8217;t forget to sudo mkdir \/opt\/hadoop_hb <a class=\"read-more\" href=\"https:\/\/andreikucharavy.com\/L3Cache\/installing-titandb-on-a-personal-machine\/\">[&hellip;]<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-102","post","type-post","status-publish","format-standard","hentry","category-prog"],"_links":{"self":[{"href":"https:\/\/andreikucharavy.com\/L3Cache\/wp-json\/wp\/v2\/posts\/102"}],"collection":[{"href":"https:\/\/andreikucharavy.com\/L3Cache\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/andreikucharavy.com\/L3Cache\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/andreikucharavy.com\/L3Cache\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/andreikucharavy.com\/L3Cache\/wp-json\/wp\/v2\/comments?post=102"}],"version-history":[{"count":7,"href":"https:\/\/andreikucharavy.com\/L3Cache\/wp-json\/wp\/v2\/posts\/102\/revisions"}],"predecessor-version":[{"id":118,"href":"https:\/\/andreikucharavy.com\/L3Cache\/wp-json\/wp\/v2\/posts\/102\/revisions\/118"}],"wp:attachment":[{"href":"https:\/\/andreikucharavy.com\/L3Cache\/wp-json\/wp\/v2\/media?parent=102"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/andreikucharavy.com\/L3Cache\/wp-json\/wp\/v2\/categories?post=102"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/andreikucharavy.com\/L3Cache\/wp-json\/wp\/v2\/tags?post=102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}