Exception while connecting grails app to hadoop!
------------------------------------------------

                 Key: HADOOP-7911
                 URL: https://issues.apache.org/jira/browse/HADOOP-7911
             Project: Hadoop Common
          Issue Type: Bug
         Environment: Spring Source Tool Suite
            Reporter: Arvind Das


Hii there, I am new to hadoop and I was trying to connect it to my grails 
application. I tested it with java program and it worked successfully. Then I 
moved on for grails app. Configuring mysql is easy and I can easily connect 
with it. But when I tried to connect via grails app....
In datasource
driverClassName = "org.apache.hadoop.hbase.jdbc.Driver"
and url = 
"jdbc:hbql;maxtablerefs=10;hbase.master=oodles-Vostro-220-Series:60010"
gorm-hbase plugin installed.
My master server was running successfully. But its port number is different and 
changes if I restart hbase. (think I have done some novice mistake) Please help 
me out

I got this Error


2011-12-12 10:54:52,032 [main] ERROR context.GrailsContextLoader  - Error 
executing bootstraps: Error creating bean with name 'hbase.admin': 
Instantiation of bean failed; nested exception is 
org.springframework.beans.BeanInstantiationException: Could not instantiate 
bean class [org.apache.hadoop.hbase.client.HBaseAdmin]: Constructor threw 
exception; nested exception is 
org.apache.hadoop.hbase.MasterNotRunningException: localhost:56297
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'hbase.admin': Instantiation of bean failed; nested exception is 
org.springframework.beans.BeanInstantiationException: Could not instantiate 
bean class [org.apache.hadoop.hbase.client.HBaseAdmin]: Constructor threw 
exception; nested exception is 
org.apache.hadoop.hbase.MasterNotRunningException: localhost:56297
        at org.grails.tomcat.TomcatServer.start(TomcatServer.groovy:164)
        at grails.web.container.EmbeddableServer$start.call(Unknown Source)
        at 
_GrailsRun_groovy$_run_closure5_closure12.doCall(_GrailsRun_groovy:159)
        at _GrailsRun_groovy$_run_closure5_closure12.doCall(_GrailsRun_groovy)
        at 
_GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:282)
        at _GrailsSettings_groovy$_run_closure10.call(_GrailsSettings_groovy)
        at _GrailsRun_groovy$_run_closure5.doCall(_GrailsRun_groovy:150)
        at _GrailsRun_groovy$_run_closure5.call(_GrailsRun_groovy)
        at _GrailsRun_groovy.runInline(_GrailsRun_groovy:116)
        at _GrailsRun_groovy.this$4$runInline(_GrailsRun_groovy)
        at _GrailsRun_groovy$_run_closure1.doCall(_GrailsRun_groovy:59)
        at RunApp$_run_closure1.doCall(RunApp.groovy:33)
        at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381)
        at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)
        at gant.Gant$_dispatch_closure7.doCall(Gant.groovy)
        at gant.Gant.withBuildListeners(Gant.groovy:427)
        at gant.Gant.this$2$withBuildListeners(Gant.groovy)
        at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
        at gant.Gant.dispatch(Gant.groovy:415)
        at gant.Gant.this$2$dispatch(Gant.groovy)
        at gant.Gant.invokeMethod(Gant.groovy)
        at gant.Gant.executeTargets(Gant.groovy:590)
        at gant.Gant.executeTargets(Gant.groovy:589)
Caused by: org.springframework.beans.BeanInstantiationException: Could not 
instantiate bean class [org.apache.hadoop.hbase.client.HBaseAdmin]: Constructor 
threw exception; nested exception is 
org.apache.hadoop.hbase.MasterNotRunningException: localhost:56297
        ... 23 more
Caused by: org.apache.hadoop.hbase.MasterNotRunningException: localhost:56297
        at 
org.apache.hadoop.hbase.client.HConnectionManager$TableServers.getMaster(HConnectionManager.java:376)
        at org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:72)
        ... 23 more



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to