You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@accumulo.apache.org by David Medinets <da...@gmail.com> on 2014/07/09 16:31:31 UTC

Monitor finding wrong hostname

I'm running a single-node Accumulo 1.5.1 instance (using Hadoop 2.4) inside
Docker. Originally the configuration used 'namenode' as the hostname.
However, I have updated the  process so that the hostname can be specified
during spinup.

I'm trying to start the instance using 'grail' as the hostname. As far as I
can see, the configuration is correct:

-bash-4.1# hostname
grail
-bash-4.1# hostname -f
grail
-bash-4.1# cat /etc/accumulo/conf/monitor
grail

Below is the exception I am seeing. Did I miss something?

-bash-4.1# more
/var/log/supervisor/accumulo-monitor-stderr---supervisor-kStsgW.log
Thread "monitor" died java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.apache.accumulo.start.Main$1.run(Main.java:103)
    at java.lang.Thread.run(Thread.java:744)
Caused by: java.net.UnknownHostException: namenode: Name or service not
known
    at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
    at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:901)
    at
java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1293)
    at java.net.InetAddress.getAllByName0(InetAddress.java:1246)
    at java.net.InetAddress.getAllByName(InetAddress.java:1162)
    at java.net.InetAddress.getAllByName(InetAddress.java:1098)
    at java.net.InetAddress.getByName(InetAddress.java:1048)
    at
org.apache.accumulo.server.Accumulo.getLocalAddress(Accumulo.java:175)
    at org.apache.accumulo.server.monitor.Monitor.main(Monitor.java:452)
    ... 6 more

Re: Monitor finding wrong hostname

Posted by David Medinets <da...@gmail.com>.
No. <sad face>


On Wed, Jul 9, 2014 at 12:06 PM, Sean Busbey <bu...@cloudera.com> wrote:

> Excellent!
>
> Did this change also fix your gc problem?
>
>
> On Wed, Jul 9, 2014 at 11:02 AM, David Medinets <da...@gmail.com>
> wrote:
>
> > It's working! I have four single-node accumulo instances running on my
> > laptop. I can visit the monitor page for each one. Changes in one
> instance
> > are isolated from the others. It takes less than 250 milliseconds to
> start
> > a new instance.
> >
> > david@zareason-verix545:~/projects/docker-builds/accumulo$ time
> > ./make_container.sh paul paul
> > d317a83cb91abc1e908d70ef05b54934b7ff89fb6920b53b62f5432305715fef
> >
> > real    0m0.249s
> > user    0m0.022s
> > sys    0m0.019s
> >
> >
> >
> > On Wed, Jul 9, 2014 at 11:49 AM, David Medinets <
> david.medinets@gmail.com>
> > wrote:
> >
> > > Doh! Perhaps the problem is my supervisor configuration:
> > >
> > > command=/usr/lib/accumulo/bin/accumulo master --address namenode
> > >
> > >
> > >
> > > On Wed, Jul 9, 2014 at 11:46 AM, David Medinets <
> > david.medinets@gmail.com>
> > > wrote:
> > >
> > >> Thanks. After updating the accumulo-env.sh the process is pulling from
> > >> IPV4. But I have no idea why the hostname is being reported as
> > 'namenode'
> > >> instead of 'grail'.
> > >>
> > >>
> > >> java.lang.reflect.InvocationTargetException
> > >>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > >>     at
> > >>
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> > >>     at
> > >>
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> > >>     at java.lang.reflect.Method.invoke(Method.java:606)
> > >>     at org.apache.accumulo.start.Main$1.run(Main.java:103)
> > >>     at java.lang.Thread.run(Thread.java:744)
> > >> Caused by: java.net.UnknownHostException: namenode
> > >>      at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
> > >>
> > >>     at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:901)
> > >>     at
> > >>
> java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1293)
> > >>     at java.net.InetAddress.getAllByName0(InetAddress.java:1246)
> > >>     at java.net.InetAddress.getAllByName(InetAddress.java:1162)
> > >>
> > >> I've updated the github project with my latest attempt.
> > >>
> > >>
> > >> On Wed, Jul 9, 2014 at 11:21 AM, Josh Elser <jo...@gmail.com>
> > wrote:
> > >>
> > >>> Actually, we do, and he isn't :)
> > >>>
> > >>> https://github.com/medined/docker-builds/blob/master/
> > >>> accumulo/accumulo.conf/accumulo-env.sh
> > >>>
> > >>> David, update your accumulo-env.sh. You also have cruft in there that
> > is
> > >>> no longer necessary (e.g. ACCUMULO_LOG_HOST)
> > >>>
> > >>>
> > >>> On 7/9/14, 11:18 AM, Sean Busbey wrote:
> > >>>
> > >>>> Josh and I are talking about this config at the end of hte
> > >>>> ACCUMULO_GENERAL_OPTS in the example accumulo-env.sh[1]:
> > >>>>
> > >>>> -Djava.net.preferIPv4Stack=true
> > >>>>
> > >>>>
> > >>>> [1]:
> > >>>> https://github.com/apache/accumulo/blob/1.5.1/conf/
> > >>>> examples/512MB/native-standalone/accumulo-env.sh#L52
> > >>>>
> > >>>>
> > >>>> On Wed, Jul 9, 2014 at 10:16 AM, Sean Busbey <bu...@cloudera.com>
> > >>>> wrote:
> > >>>>
> > >>>>  Sure, but we don't know if David's current configs include
> everything
> > >>>>> from
> > >>>>> the examples.
> > >>>>>
> > >>>>>
> > >>>>> On Wed, Jul 9, 2014 at 10:11 AM, Josh Elser <jo...@gmail.com>
> > >>>>> wrote:
> > >>>>>
> > >>>>>  I think I had made the change before 1.5.1 came out which updates
> > the
> > >>>>>> example configs to set the JVM preferIpv4Stack (or w/e that option
> > >>>>>> is), too.
> > >>>>>>
> > >>>>>>
> > >>>>>> On 7/9/14, 10:37 AM, Sean Busbey wrote:
> > >>>>>>
> > >>>>>>  The stacktrace shows it's trying to use IPv6.
> > >>>>>>>
> > >>>>>>> Have you disabled ipv6 on the host? Do your Accumulo role options
> > >>>>>>> include
> > >>>>>>> the flag that says to use the ipv4 network stack?
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>
> > >>>>> --
> > >>>>> Sean
> > >>>>>
> > >>>>>
> > >>>>
> > >>>>
> > >>>>
> > >>
> > >
> >
>
>
>
> --
> Sean
>

Re: Monitor finding wrong hostname

Posted by Sean Busbey <bu...@cloudera.com>.
Excellent!

Did this change also fix your gc problem?


On Wed, Jul 9, 2014 at 11:02 AM, David Medinets <da...@gmail.com>
wrote:

> It's working! I have four single-node accumulo instances running on my
> laptop. I can visit the monitor page for each one. Changes in one instance
> are isolated from the others. It takes less than 250 milliseconds to start
> a new instance.
>
> david@zareason-verix545:~/projects/docker-builds/accumulo$ time
> ./make_container.sh paul paul
> d317a83cb91abc1e908d70ef05b54934b7ff89fb6920b53b62f5432305715fef
>
> real    0m0.249s
> user    0m0.022s
> sys    0m0.019s
>
>
>
> On Wed, Jul 9, 2014 at 11:49 AM, David Medinets <da...@gmail.com>
> wrote:
>
> > Doh! Perhaps the problem is my supervisor configuration:
> >
> > command=/usr/lib/accumulo/bin/accumulo master --address namenode
> >
> >
> >
> > On Wed, Jul 9, 2014 at 11:46 AM, David Medinets <
> david.medinets@gmail.com>
> > wrote:
> >
> >> Thanks. After updating the accumulo-env.sh the process is pulling from
> >> IPV4. But I have no idea why the hostname is being reported as
> 'namenode'
> >> instead of 'grail'.
> >>
> >>
> >> java.lang.reflect.InvocationTargetException
> >>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>     at
> >>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> >>     at
> >>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >>     at java.lang.reflect.Method.invoke(Method.java:606)
> >>     at org.apache.accumulo.start.Main$1.run(Main.java:103)
> >>     at java.lang.Thread.run(Thread.java:744)
> >> Caused by: java.net.UnknownHostException: namenode
> >>      at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
> >>
> >>     at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:901)
> >>     at
> >> java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1293)
> >>     at java.net.InetAddress.getAllByName0(InetAddress.java:1246)
> >>     at java.net.InetAddress.getAllByName(InetAddress.java:1162)
> >>
> >> I've updated the github project with my latest attempt.
> >>
> >>
> >> On Wed, Jul 9, 2014 at 11:21 AM, Josh Elser <jo...@gmail.com>
> wrote:
> >>
> >>> Actually, we do, and he isn't :)
> >>>
> >>> https://github.com/medined/docker-builds/blob/master/
> >>> accumulo/accumulo.conf/accumulo-env.sh
> >>>
> >>> David, update your accumulo-env.sh. You also have cruft in there that
> is
> >>> no longer necessary (e.g. ACCUMULO_LOG_HOST)
> >>>
> >>>
> >>> On 7/9/14, 11:18 AM, Sean Busbey wrote:
> >>>
> >>>> Josh and I are talking about this config at the end of hte
> >>>> ACCUMULO_GENERAL_OPTS in the example accumulo-env.sh[1]:
> >>>>
> >>>> -Djava.net.preferIPv4Stack=true
> >>>>
> >>>>
> >>>> [1]:
> >>>> https://github.com/apache/accumulo/blob/1.5.1/conf/
> >>>> examples/512MB/native-standalone/accumulo-env.sh#L52
> >>>>
> >>>>
> >>>> On Wed, Jul 9, 2014 at 10:16 AM, Sean Busbey <bu...@cloudera.com>
> >>>> wrote:
> >>>>
> >>>>  Sure, but we don't know if David's current configs include everything
> >>>>> from
> >>>>> the examples.
> >>>>>
> >>>>>
> >>>>> On Wed, Jul 9, 2014 at 10:11 AM, Josh Elser <jo...@gmail.com>
> >>>>> wrote:
> >>>>>
> >>>>>  I think I had made the change before 1.5.1 came out which updates
> the
> >>>>>> example configs to set the JVM preferIpv4Stack (or w/e that option
> >>>>>> is), too.
> >>>>>>
> >>>>>>
> >>>>>> On 7/9/14, 10:37 AM, Sean Busbey wrote:
> >>>>>>
> >>>>>>  The stacktrace shows it's trying to use IPv6.
> >>>>>>>
> >>>>>>> Have you disabled ipv6 on the host? Do your Accumulo role options
> >>>>>>> include
> >>>>>>> the flag that says to use the ipv4 network stack?
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>
> >>>>> --
> >>>>> Sean
> >>>>>
> >>>>>
> >>>>
> >>>>
> >>>>
> >>
> >
>



-- 
Sean

Re: Monitor finding wrong hostname

Posted by David Medinets <da...@gmail.com>.
It's working! I have four single-node accumulo instances running on my
laptop. I can visit the monitor page for each one. Changes in one instance
are isolated from the others. It takes less than 250 milliseconds to start
a new instance.

david@zareason-verix545:~/projects/docker-builds/accumulo$ time
./make_container.sh paul paul
d317a83cb91abc1e908d70ef05b54934b7ff89fb6920b53b62f5432305715fef

real    0m0.249s
user    0m0.022s
sys    0m0.019s



On Wed, Jul 9, 2014 at 11:49 AM, David Medinets <da...@gmail.com>
wrote:

> Doh! Perhaps the problem is my supervisor configuration:
>
> command=/usr/lib/accumulo/bin/accumulo master --address namenode
>
>
>
> On Wed, Jul 9, 2014 at 11:46 AM, David Medinets <da...@gmail.com>
> wrote:
>
>> Thanks. After updating the accumulo-env.sh the process is pulling from
>> IPV4. But I have no idea why the hostname is being reported as 'namenode'
>> instead of 'grail'.
>>
>>
>> java.lang.reflect.InvocationTargetException
>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>     at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>     at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>     at java.lang.reflect.Method.invoke(Method.java:606)
>>     at org.apache.accumulo.start.Main$1.run(Main.java:103)
>>     at java.lang.Thread.run(Thread.java:744)
>> Caused by: java.net.UnknownHostException: namenode
>>      at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
>>
>>     at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:901)
>>     at
>> java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1293)
>>     at java.net.InetAddress.getAllByName0(InetAddress.java:1246)
>>     at java.net.InetAddress.getAllByName(InetAddress.java:1162)
>>
>> I've updated the github project with my latest attempt.
>>
>>
>> On Wed, Jul 9, 2014 at 11:21 AM, Josh Elser <jo...@gmail.com> wrote:
>>
>>> Actually, we do, and he isn't :)
>>>
>>> https://github.com/medined/docker-builds/blob/master/
>>> accumulo/accumulo.conf/accumulo-env.sh
>>>
>>> David, update your accumulo-env.sh. You also have cruft in there that is
>>> no longer necessary (e.g. ACCUMULO_LOG_HOST)
>>>
>>>
>>> On 7/9/14, 11:18 AM, Sean Busbey wrote:
>>>
>>>> Josh and I are talking about this config at the end of hte
>>>> ACCUMULO_GENERAL_OPTS in the example accumulo-env.sh[1]:
>>>>
>>>> -Djava.net.preferIPv4Stack=true
>>>>
>>>>
>>>> [1]:
>>>> https://github.com/apache/accumulo/blob/1.5.1/conf/
>>>> examples/512MB/native-standalone/accumulo-env.sh#L52
>>>>
>>>>
>>>> On Wed, Jul 9, 2014 at 10:16 AM, Sean Busbey <bu...@cloudera.com>
>>>> wrote:
>>>>
>>>>  Sure, but we don't know if David's current configs include everything
>>>>> from
>>>>> the examples.
>>>>>
>>>>>
>>>>> On Wed, Jul 9, 2014 at 10:11 AM, Josh Elser <jo...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>  I think I had made the change before 1.5.1 came out which updates the
>>>>>> example configs to set the JVM preferIpv4Stack (or w/e that option
>>>>>> is), too.
>>>>>>
>>>>>>
>>>>>> On 7/9/14, 10:37 AM, Sean Busbey wrote:
>>>>>>
>>>>>>  The stacktrace shows it's trying to use IPv6.
>>>>>>>
>>>>>>> Have you disabled ipv6 on the host? Do your Accumulo role options
>>>>>>> include
>>>>>>> the flag that says to use the ipv4 network stack?
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>
>>>>> --
>>>>> Sean
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>
>

Re: Monitor finding wrong hostname

Posted by David Medinets <da...@gmail.com>.
Doh! Perhaps the problem is my supervisor configuration:

command=/usr/lib/accumulo/bin/accumulo master --address namenode



On Wed, Jul 9, 2014 at 11:46 AM, David Medinets <da...@gmail.com>
wrote:

> Thanks. After updating the accumulo-env.sh the process is pulling from
> IPV4. But I have no idea why the hostname is being reported as 'namenode'
> instead of 'grail'.
>
>
> java.lang.reflect.InvocationTargetException
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:606)
>     at org.apache.accumulo.start.Main$1.run(Main.java:103)
>     at java.lang.Thread.run(Thread.java:744)
> Caused by: java.net.UnknownHostException: namenode
>     at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
>
>     at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:901)
>     at
> java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1293)
>     at java.net.InetAddress.getAllByName0(InetAddress.java:1246)
>     at java.net.InetAddress.getAllByName(InetAddress.java:1162)
>
> I've updated the github project with my latest attempt.
>
>
> On Wed, Jul 9, 2014 at 11:21 AM, Josh Elser <jo...@gmail.com> wrote:
>
>> Actually, we do, and he isn't :)
>>
>> https://github.com/medined/docker-builds/blob/master/
>> accumulo/accumulo.conf/accumulo-env.sh
>>
>> David, update your accumulo-env.sh. You also have cruft in there that is
>> no longer necessary (e.g. ACCUMULO_LOG_HOST)
>>
>>
>> On 7/9/14, 11:18 AM, Sean Busbey wrote:
>>
>>> Josh and I are talking about this config at the end of hte
>>> ACCUMULO_GENERAL_OPTS in the example accumulo-env.sh[1]:
>>>
>>> -Djava.net.preferIPv4Stack=true
>>>
>>>
>>> [1]:
>>> https://github.com/apache/accumulo/blob/1.5.1/conf/
>>> examples/512MB/native-standalone/accumulo-env.sh#L52
>>>
>>>
>>> On Wed, Jul 9, 2014 at 10:16 AM, Sean Busbey <bu...@cloudera.com>
>>> wrote:
>>>
>>>  Sure, but we don't know if David's current configs include everything
>>>> from
>>>> the examples.
>>>>
>>>>
>>>> On Wed, Jul 9, 2014 at 10:11 AM, Josh Elser <jo...@gmail.com>
>>>> wrote:
>>>>
>>>>  I think I had made the change before 1.5.1 came out which updates the
>>>>> example configs to set the JVM preferIpv4Stack (or w/e that option
>>>>> is), too.
>>>>>
>>>>>
>>>>> On 7/9/14, 10:37 AM, Sean Busbey wrote:
>>>>>
>>>>>  The stacktrace shows it's trying to use IPv6.
>>>>>>
>>>>>> Have you disabled ipv6 on the host? Do your Accumulo role options
>>>>>> include
>>>>>> the flag that says to use the ipv4 network stack?
>>>>>>
>>>>>>
>>>>>>
>>>>
>>>> --
>>>> Sean
>>>>
>>>>
>>>
>>>
>>>
>

Re: Monitor finding wrong hostname

Posted by David Medinets <da...@gmail.com>.
Thanks. After updating the accumulo-env.sh the process is pulling from
IPV4. But I have no idea why the hostname is being reported as 'namenode'
instead of 'grail'.

java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.apache.accumulo.start.Main$1.run(Main.java:103)
    at java.lang.Thread.run(Thread.java:744)
Caused by: java.net.UnknownHostException: namenode
    at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
    at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:901)
    at
java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1293)
    at java.net.InetAddress.getAllByName0(InetAddress.java:1246)
    at java.net.InetAddress.getAllByName(InetAddress.java:1162)

I've updated the github project with my latest attempt.


On Wed, Jul 9, 2014 at 11:21 AM, Josh Elser <jo...@gmail.com> wrote:

> Actually, we do, and he isn't :)
>
> https://github.com/medined/docker-builds/blob/master/
> accumulo/accumulo.conf/accumulo-env.sh
>
> David, update your accumulo-env.sh. You also have cruft in there that is
> no longer necessary (e.g. ACCUMULO_LOG_HOST)
>
>
> On 7/9/14, 11:18 AM, Sean Busbey wrote:
>
>> Josh and I are talking about this config at the end of hte
>> ACCUMULO_GENERAL_OPTS in the example accumulo-env.sh[1]:
>>
>> -Djava.net.preferIPv4Stack=true
>>
>>
>> [1]:
>> https://github.com/apache/accumulo/blob/1.5.1/conf/examples/512MB/native-
>> standalone/accumulo-env.sh#L52
>>
>>
>> On Wed, Jul 9, 2014 at 10:16 AM, Sean Busbey <bu...@cloudera.com> wrote:
>>
>>  Sure, but we don't know if David's current configs include everything
>>> from
>>> the examples.
>>>
>>>
>>> On Wed, Jul 9, 2014 at 10:11 AM, Josh Elser <jo...@gmail.com>
>>> wrote:
>>>
>>>  I think I had made the change before 1.5.1 came out which updates the
>>>> example configs to set the JVM preferIpv4Stack (or w/e that option is),
>>>> too.
>>>>
>>>>
>>>> On 7/9/14, 10:37 AM, Sean Busbey wrote:
>>>>
>>>>  The stacktrace shows it's trying to use IPv6.
>>>>>
>>>>> Have you disabled ipv6 on the host? Do your Accumulo role options
>>>>> include
>>>>> the flag that says to use the ipv4 network stack?
>>>>>
>>>>>
>>>>>
>>>
>>> --
>>> Sean
>>>
>>>
>>
>>
>>

Re: Monitor finding wrong hostname

Posted by Josh Elser <jo...@gmail.com>.
Actually, we do, and he isn't :)

https://github.com/medined/docker-builds/blob/master/accumulo/accumulo.conf/accumulo-env.sh

David, update your accumulo-env.sh. You also have cruft in there that is 
no longer necessary (e.g. ACCUMULO_LOG_HOST)

On 7/9/14, 11:18 AM, Sean Busbey wrote:
> Josh and I are talking about this config at the end of hte
> ACCUMULO_GENERAL_OPTS in the example accumulo-env.sh[1]:
>
> -Djava.net.preferIPv4Stack=true
>
>
> [1]:
> https://github.com/apache/accumulo/blob/1.5.1/conf/examples/512MB/native-standalone/accumulo-env.sh#L52
>
>
> On Wed, Jul 9, 2014 at 10:16 AM, Sean Busbey <bu...@cloudera.com> wrote:
>
>> Sure, but we don't know if David's current configs include everything from
>> the examples.
>>
>>
>> On Wed, Jul 9, 2014 at 10:11 AM, Josh Elser <jo...@gmail.com> wrote:
>>
>>> I think I had made the change before 1.5.1 came out which updates the
>>> example configs to set the JVM preferIpv4Stack (or w/e that option is), too.
>>>
>>>
>>> On 7/9/14, 10:37 AM, Sean Busbey wrote:
>>>
>>>> The stacktrace shows it's trying to use IPv6.
>>>>
>>>> Have you disabled ipv6 on the host? Do your Accumulo role options include
>>>> the flag that says to use the ipv4 network stack?
>>>>
>>>>
>>
>>
>> --
>> Sean
>>
>
>
>

Re: Monitor finding wrong hostname

Posted by Sean Busbey <bu...@cloudera.com>.
Josh and I are talking about this config at the end of hte
ACCUMULO_GENERAL_OPTS in the example accumulo-env.sh[1]:

-Djava.net.preferIPv4Stack=true


[1]:
https://github.com/apache/accumulo/blob/1.5.1/conf/examples/512MB/native-standalone/accumulo-env.sh#L52


On Wed, Jul 9, 2014 at 10:16 AM, Sean Busbey <bu...@cloudera.com> wrote:

> Sure, but we don't know if David's current configs include everything from
> the examples.
>
>
> On Wed, Jul 9, 2014 at 10:11 AM, Josh Elser <jo...@gmail.com> wrote:
>
>> I think I had made the change before 1.5.1 came out which updates the
>> example configs to set the JVM preferIpv4Stack (or w/e that option is), too.
>>
>>
>> On 7/9/14, 10:37 AM, Sean Busbey wrote:
>>
>>> The stacktrace shows it's trying to use IPv6.
>>>
>>> Have you disabled ipv6 on the host? Do your Accumulo role options include
>>> the flag that says to use the ipv4 network stack?
>>>
>>>
>
>
> --
> Sean
>



-- 
Sean

Re: Monitor finding wrong hostname

Posted by Sean Busbey <bu...@cloudera.com>.
Sure, but we don't know if David's current configs include everything from
the examples.


On Wed, Jul 9, 2014 at 10:11 AM, Josh Elser <jo...@gmail.com> wrote:

> I think I had made the change before 1.5.1 came out which updates the
> example configs to set the JVM preferIpv4Stack (or w/e that option is), too.
>
>
> On 7/9/14, 10:37 AM, Sean Busbey wrote:
>
>> The stacktrace shows it's trying to use IPv6.
>>
>> Have you disabled ipv6 on the host? Do your Accumulo role options include
>> the flag that says to use the ipv4 network stack?
>>
>>


-- 
Sean

Re: Monitor finding wrong hostname

Posted by Josh Elser <jo...@gmail.com>.
I think I had made the change before 1.5.1 came out which updates the 
example configs to set the JVM preferIpv4Stack (or w/e that option is), too.

On 7/9/14, 10:37 AM, Sean Busbey wrote:
> The stacktrace shows it's trying to use IPv6.
>
> Have you disabled ipv6 on the host? Do your Accumulo role options include
> the flag that says to use the ipv4 network stack?
>

Re: Monitor finding wrong hostname

Posted by Sean Busbey <bu...@cloudera.com>.
The stacktrace shows it's trying to use IPv6.

Have you disabled ipv6 on the host? Do your Accumulo role options include
the flag that says to use the ipv4 network stack?

-- 
Sean
On Jul 9, 2014 9:32 AM, "David Medinets" <da...@gmail.com> wrote:

> I'm running a single-node Accumulo 1.5.1 instance (using Hadoop 2.4) inside
> Docker. Originally the configuration used 'namenode' as the hostname.
> However, I have updated the  process so that the hostname can be specified
> during spinup.
>
> I'm trying to start the instance using 'grail' as the hostname. As far as I
> can see, the configuration is correct:
>
> -bash-4.1# hostname
> grail
> -bash-4.1# hostname -f
> grail
> -bash-4.1# cat /etc/accumulo/conf/monitor
> grail
>
> Below is the exception I am seeing. Did I miss something?
>
> -bash-4.1# more
> /var/log/supervisor/accumulo-monitor-stderr---supervisor-kStsgW.log
> Thread "monitor" died java.lang.reflect.InvocationTargetException
> java.lang.reflect.InvocationTargetException
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>     at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke(Method.java:606)
>     at org.apache.accumulo.start.Main$1.run(Main.java:103)
>     at java.lang.Thread.run(Thread.java:744)
> Caused by: java.net.UnknownHostException: namenode: Name or service not
> known
>     at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
>     at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:901)
>     at
> java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1293)
>     at java.net.InetAddress.getAllByName0(InetAddress.java:1246)
>     at java.net.InetAddress.getAllByName(InetAddress.java:1162)
>     at java.net.InetAddress.getAllByName(InetAddress.java:1098)
>     at java.net.InetAddress.getByName(InetAddress.java:1048)
>     at
> org.apache.accumulo.server.Accumulo.getLocalAddress(Accumulo.java:175)
>     at org.apache.accumulo.server.monitor.Monitor.main(Monitor.java:452)
>     ... 6 more
>