linux - Installing hive on ubuntu (network configuration trouble) -


so, can see here, i'm having troubles installing hive. (info : ubuntu 16.04, java 8, hadoop 2.7.2, spark 1.6.2, hive 2.0.1)

i've solved of errors, when try hive in cli, i'm having following error:

exception in thread "main" java.lang.runtimeexception: java.net.connectexception: call fma-virtualbox/127.0.1.1 localhost:54310 failed on connection exception: java.net.connectexception: connexion refusée; more details see: http://wiki.apache.org/hadoop/connectionrefused

i went link apache wiki , if understand well, think cause of problem explained in part:

quote:

  1. if error message says remote service on "127.0.0.1" or "localhost" means configuration file telling client service on local server. if client trying talk remote system, configuration broken.

  2. check there isn't entry hostname mapped 127.0.0.1 or 127.0.1.1 in /etc/hosts (ubuntu notorious this).

so did cat /etc/hosts, , get:

127.0.0.1   localhost 127.0.1.1   fma-virtualbox  # following lines desirable ipv6 capable hosts ::1     ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters 

so think found problem. however, i'm not sure how fix it. should remove first 2 lines of etc/hosts ? or edit them else ? or wrong in thinking i've found problem ?

thanks.


Comments