Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Drill, mail # dev - bug on java 7 with OSX


+
Ted Dunning 2013-02-25, 00:18
+
Azuryy Yu 2013-02-25, 02:27
+
Ted Dunning 2013-02-25, 02:40
Copy link to this message
-
Re: bug on java 7 with OSX
Azuryy Yu 2013-02-25, 02:43
Oh, sorry, I ran it on :

[root@test ~]# uname -a
Linux test.slave150.com 2.6.32-letv.2.220.4.1.el6.x86_64 #1 SMP Mon Jan 30
10:57:36 CST 2012 x86_64 x86_64 x86_64 GNU/Linux
On Mon, Feb 25, 2013 at 10:40 AM, Ted Dunning <[EMAIL PROTECTED]> wrote:

> The problem is specific to OSX.  I just hit the problem in other code so I
> can verify that it exists.  The problem has to do with resolving the local
> hostname when you call InetAddress.getLocalHost().  I think that using
> NetworkInterface.getNetworkInterfaces() is a better approach anyway so I
> switched to using that.
>
> On Sun, Feb 24, 2013 at 6:27 PM, Azuryy Yu <[EMAIL PROTECTED]> wrote:
>
> > Hi Ted,
> > I cannot reproduce it.
> >
> > My output using your source code in the bug report:
> >
> > 1.7.0_11 getHostName(): test.slave150.com
> > 1.7.0_11 www.google.com.getHostName(): www.google.com
> >
> >
> >
> >
> >
> > On Mon, Feb 25, 2013 at 8:18 AM, Ted Dunning <[EMAIL PROTECTED]>
> > wrote:
> >
> > > Java 7 has a regression relative to Java 6 on OSX when resolving
> > localhost.
> > >
> > > See http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7180557
> > >
> > > This just hit me in another use case and might affect Drill as well
> since
> > > we use Java 7.
> > >
> > > Just sayin'
> > >
> >
>