You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@chukwa.apache.org by abhijitdhar <ab...@gmail.com> on 2011/06/21 07:25:09 UTC

Re: HBase Exceptions in HICC

I'm getting the below error when I try to see SystemMetrics in HICC.
I'm using the sigar.SystemMetrics and I also see data in hbase. I got the
latest chukwa from trunk. Any clue what might be wrong?

2011-06-21 05:02:10,702 ERROR btpool0-5 ChukwaHBaseStore -
java.lang.NullPointerException
        at
org.apache.hadoop.chukwa.datastore.ChukwaHBaseStore.getColumnNamesHelper(ChukwaHBaseStore.java:125)
        at
org.apache.hadoop.chukwa.datastore.ChukwaHBaseStore.getColumnNames(ChukwaHBaseStore.java:160)
        at
org.apache.hadoop.chukwa.hicc.rest.MetricsController.getColumnNames(MetricsController.java:158)
        at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:15
6)
        at
com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:67)
        at
com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:166)
        at
com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:114)
        at
com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:74)
        at
com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:114)
        at
com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:66)
        at
com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:658)
        at
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:616)
        at
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:607)
        at
com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:309)
        at
com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:425)
        at
com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:590)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
        at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
        at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
        at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
        at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
        at
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
        at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
        at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
        at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
        at org.mortbay.jetty.Server.handle(Server.java:324)
        at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
        at
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:829)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
        at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
        at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)


--
View this message in context: http://apache-chukwa.679492.n3.nabble.com/HBase-Exceptions-in-HICC-tp1938167p3089326.html
Sent from the Chukwa - Users mailing list archive at Nabble.com.

Re: HBase Exceptions in HICC

Posted by Eric Yang <ey...@yahoo-inc.com>.
I recommend to set the server to UTC to avoid day light saving time issues with data.  HICC web server should also run from UTC time server.  There is a lot of polish required to get HICC UI to display local time zone correctly.  Feel free to file jiras.

Regards,
Eric


On 6/21/11 11:57 AM, "abhijitdhar" <ab...@gmail.com> wrote:

Thanks, setting the timezone to PST helped..but its still not very smooth. It
worked with US/Pacific. My HBase is btw 0.90.3

Thanks,
Abhijit

--
View this message in context: http://apache-chukwa.679492.n3.nabble.com/HBase-Exceptions-in-HICC-tp1938167p3092378.html
Sent from the Chukwa - Users mailing list archive at Nabble.com.


Re: HBase Exceptions in HICC

Posted by abhijitdhar <ab...@gmail.com>.
Thanks, setting the timezone to PST helped..but its still not very smooth. It
worked with US/Pacific. My HBase is btw 0.90.3

Thanks,
Abhijit

--
View this message in context: http://apache-chukwa.679492.n3.nabble.com/HBase-Exceptions-in-HICC-tp1938167p3092378.html
Sent from the Chukwa - Users mailing list archive at Nabble.com.

Re: HBase Exceptions in HICC

Posted by Eric Yang <ey...@yahoo-inc.com>.
Is the server set to UTC timezone?  If it is not, you might need to select time range n hours ahead or behind of current time.
In addition, what version is the HBase?

Regards,
Eric


On 6/21/11 10:50 AM, "abhijitdhar" <ab...@gmail.com> wrote:

Hi Eric,

I tried that, but still get the same error.

My table looks like this:
create "SystemMetrics",
{NAME => "cpu", VERSIONS => 65535},
{NAME => "system", VERSION => 65535},
{NAME => "disk", VERSION => 65535},
{NAME => "memory", VERSION => 65535},
{NAME => "network", VERSION => 65535},
{NAME => "tags", VERSION => 65535},
{NAME => "SystemMetricsInError", VERSIONS => 65535}

Some sample data in it:
 column=memory:ActualFree, timestamp=1308677520000, value=1453678592

 column=memory:ActualUsed, timestamp=1308677520000, value=305623040

 column=memory:Free, timestamp=1308677520000, value=156286976

 column=memory:FreePercent, timestamp=1308677520000, value=82.62816139989802

 column=memory:Ram, timestamp=1308677520000, value=1680

 column=memory:Total, timestamp=1308677520000, value=1759301632

 column=memory:Used, timestamp=1308677520000, value=1603014656

 column=memory:UsedPercent, timestamp=1308677520000,
value=17.371838600101974

 column=memory:capp, timestamp=1308677520000, value=Sigar

 column=memory:csource, timestamp=1308677520000, value=ip-10-168-46-128

 column=memory:ctags, timestamp=1308677520000, value= cluster="chukwa"

--
View this message in context: http://apache-chukwa.679492.n3.nabble.com/HBase-Exceptions-in-HICC-tp1938167p3092022.html
Sent from the Chukwa - Users mailing list archive at Nabble.com.


Re: HBase Exceptions in HICC

Posted by abhijitdhar <ab...@gmail.com>.
Hi Eric,

I tried that, but still get the same error.

My table looks like this:
create "SystemMetrics",
{NAME => "cpu", VERSIONS => 65535},
{NAME => "system", VERSION => 65535},
{NAME => "disk", VERSION => 65535},
{NAME => "memory", VERSION => 65535},
{NAME => "network", VERSION => 65535},
{NAME => "tags", VERSION => 65535},
{NAME => "SystemMetricsInError", VERSIONS => 65535}

Some sample data in it:
 column=memory:ActualFree, timestamp=1308677520000, value=1453678592

 column=memory:ActualUsed, timestamp=1308677520000, value=305623040

 column=memory:Free, timestamp=1308677520000, value=156286976

 column=memory:FreePercent, timestamp=1308677520000, value=82.62816139989802

 column=memory:Ram, timestamp=1308677520000, value=1680

 column=memory:Total, timestamp=1308677520000, value=1759301632

 column=memory:Used, timestamp=1308677520000, value=1603014656

 column=memory:UsedPercent, timestamp=1308677520000,
value=17.371838600101974

 column=memory:capp, timestamp=1308677520000, value=Sigar

 column=memory:csource, timestamp=1308677520000, value=ip-10-168-46-128

 column=memory:ctags, timestamp=1308677520000, value= cluster="chukwa"

--
View this message in context: http://apache-chukwa.679492.n3.nabble.com/HBase-Exceptions-in-HICC-tp1938167p3092022.html
Sent from the Chukwa - Users mailing list archive at Nabble.com.

Re: HBase Exceptions in HICC

Posted by Eric Yang <ey...@yahoo-inc.com>.
Hi abhijit,

I notice that Hbase 0.90.3 returns a null pointer for empty list.  This was different from 0.20.6 behavior.  As a workaround, set time range to last 1 hour, and see if you still get this exception. Please file a JIRA.  Thanks

Regards,
Eric

On 6/20/11 10:25 PM, "abhijitdhar" <ab...@gmail.com> wrote:

I'm getting the below error when I try to see SystemMetrics in HICC.
I'm using the sigar.SystemMetrics and I also see data in hbase. I got the
latest chukwa from trunk. Any clue what might be wrong?

2011-06-21 05:02:10,702 ERROR btpool0-5 ChukwaHBaseStore -
java.lang.NullPointerException
        at
org.apache.hadoop.chukwa.datastore.ChukwaHBaseStore.getColumnNamesHelper(ChukwaHBaseStore.java:125)
        at
org.apache.hadoop.chukwa.datastore.ChukwaHBaseStore.getColumnNames(ChukwaHBaseStore.java:160)
        at
org.apache.hadoop.chukwa.hicc.rest.MetricsController.getColumnNames(MetricsController.java:158)
        at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:15
6)
        at
com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:67)
        at
com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:166)
        at
com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:114)
        at
com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:74)
        at
com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:114)
        at
com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:66)
        at
com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:658)
        at
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:616)
        at
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:607)
        at
com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:309)
        at
com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:425)
        at
com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:590)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
        at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
        at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
        at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
        at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
        at
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
        at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:206)
        at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
        at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
        at org.mortbay.jetty.Server.handle(Server.java:324)
        at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
        at
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:829)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
        at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
        at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)


--
View this message in context: http://apache-chukwa.679492.n3.nabble.com/HBase-Exceptions-in-HICC-tp1938167p3089326.html
Sent from the Chukwa - Users mailing list archive at Nabble.com.