Not able to run commands on Hbase shell - hadoop

I keep getting INFO ipc.HBaseRPC: Problem connecting to server: /129.10.193.117:49176 when I try to create or disable tables in Hbase. I have googled this error and found couple of answers. All of them say something like "Default installation added a line in /etc/hosts which linked to machine hostname with the IP 127.0.1.1."
Here is my etc/host file
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
Also my conf/regionservers is pointing to localhost. Does anyone know how to fix this ? After shutting down hbase & Hadoop and then restarting my system, I do not get this error. Not sure why.

Are you hadoop configurations also pointing to localhost ?

Related

MacOS doesn't resolve localhost to 127.0.0.1 (ignores hosts / apache vhosts)

I ran into the problem, that localhost redirects to a specific domain instead of 127.0.0.1.
My configuration is a local apache/mysql/php installation on MacOS Mojave using vhosts for different projects that are configured in hosts to redirect properly.
When I enter 127.0.0.1 in any browser, I get to my overview page lying in the www root. The same should happen, when I enter localhost in the browser, but instead it redirects to a domain of a project I was working on in the past. It happens also without network connection, so the configuration is on this machine.
My /etc/hosts file:
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost project1.local project2.local
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
The first line seems to be ignored and localhost doesn't resolve to 127.0.0.1.
I only have two vhost configurations plus default configuration with no wrong redirection and also the httpd.conf lookes fine. I searched the whole machine with grep -lr "redirectiondomain.com" * without results. I tried with apache switched off with the same result and looked up the MacOS network settings but I can't find anything related to the wrong redirection neither any other solution on stackoverflow or google that solves my issue. Has anybody a clue how the wrong redirection of localhost could be set somewhere else?
Edit: My hostname in MacOS is set. I tried localhost without port, with :80 and :8080

Why does oracle connection opens so slow on mac os sierra?

I work on Docker with an oracle-xe-11g image. When I connect via ssh to Docker container, the connection is established immediately. But when I want to connect to oracle database using localhost:49162 ( port is forwarded to container's 1521 ) it will take about 15 - 25 seconds to open each connection.
It doesn't matter if I use JDBC connection or SQLDeveloper.
I have read that problem could be connected with DNS resolution, but I wasn't able to find any sufficient solution.
Slow DNS lookups
My hosts file:
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
My resolv.conf:
search home
nameserver 62.179.1.60
nameserver 62.179.1.61
System version:
macOS Sierra 10.12.3.
Has someone faced similar issues?
In my case, When I followed the link you mentioned in the question, and in particular when I changed the first line of my /etc/hosts of my mac from:
127.0.0.1 localhost
to:
127.0.0.1 localhost Muhammads-MacBook-Pro.local
Where Muhammads-MacBook-Pro.local is the output of the command hostname
Then it worked fine.

Correct configuration of /etc/hosts file for Oracle Forms and Reports on Virtualbox

I am trying to do an install of Oracle Forms and Reports on Weblogic 10.3.6. I am using virtual box and Oracle Linux 6.5.
Forms and Reports keeps failing on 'Executing: opmnctl startproc ias-component..'
After looking through what logs are avaiable and searching the net, I think the problem lies with my etc/hosts file - but I do not understand why or how to fix it.
My etc/hosts file consists of
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost.localdomain6
I also tried changing this file to
127.0.0.1 localhost localhost4
::1 localhost localhost6
Does anyone know what I should have in this file?
Usually you will leave the hosts file with the defaults and use DNS for name resolution. I would verify the DNS settings for your server. Then use ping to test name resolution.

OSX can't access localhost, only username.local

I've been facing this problem in mountain lion 10.8.3 and I cannot seem to find an answer. The problem is that I can access my "localhost" using username.local or http://127.0.0.1/ but not through localhost. I'm using apache 2.2 and virtualhostx, and for now is fine becuase I map every virtual host with a folder, but when developing in java, using Tomcat, I cannot access localhost, also there I have to access username.local..
my hosts file
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
If I cant find a solution I only can think of a fresh reinstall.. And this will be very annoying..
check your httpd.conf for this line
# Virtual hosts
Include /private/etc/apache2/extra/httpd-vhosts.conf
i had the same issue. Then i discovered that the httod-vhosts.conf file was commented out when i upgraded my OS.

Installing Glassfish 3 on Mac OS X 10.8.2 fails in Domain Info setup

I am a Glassfish newbie, though a Java and Unix veteran. I am running the shell script to install Java EE 6 SDK, including Glassfish 3 on my Mac.
bash-3.2# sh java_ee_sdk-6u4-unix.sh
Everything goes along fine until I get to the Domain Info screen. I am sticking with the default info (except for passwords):
Domain Name: domain1
Admin Port: 4848 <- I have verified with netstat that both ports are free
Http Port: 8080 <-
Username: admin
Password: xxxxxxxxxxxx
Service Name: domain1Service
+ Start domain after creation
When I click Next, I get 2 error dialogs that tell me the following:
Admin Port: Host name not found
Http Port: Host name not found
Does anyone know how to get past this?
I confirm, I correct the same problem by changing my hostname to localhost using the command line hostname localhost in linux.
Looks like something is wrong with your network config. Maybe your hosts file is missing the entry for localhost.
Check the file /private/etc/hosts for
127.0.0.1 localhost
You can also try to set your hostname with
sudo hostname localhost
The answer was relatively simple. I had to add the hostname configured with MacOS Settings as an alias for localhost into my /etc/hosts file. I'm not sure where MacOS keeps the host name. But the hostname command (i.e. gethostname) was returning 'airguitar', which is what Glassfish was trying to connect to. Since it wasn't in /etc/hosts, the hostname couldn't be found.
This is a problem that happens on many systems, It's happening on my linux as well. The solution is quite simple, as chuck almost got it.
Check your hosts file, on linux is under /etc/hosts. You'll probably have a file like this:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
Check your hostname with the command hostname
[root#glassfish1 opt]# hostname
glassfish1
And add this host name to your hosts file like this:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 glassfish1
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
this did the trick for me.

Resources