Hi Aaron, My blur servers are running but blur shell not working, exceptions i had sent in last email..
I am thinking to create tables through thrift java code...Please give sample code to create table in blur from java, i did not find in docs..Also is there any provision of keyspace concept in blur ??..i need to store two clients data with exact similar tables in two different keyspaces so that backups etc possible independently for them..any alternative for this.. NARESH On Tue, Nov 26, 2013 at 7:24 PM, Naresh Yadav <[email protected]> wrote: > Hi Aaron, > > I think my controller,shardserver,zookeeper are running on windows using > cygwin. I found this exception in > blur-naresh.yadav-controller-server-MLHWLT08-0_main.log which is atleast > allowing server to start..So i am ignoring this for now.. > > INFO 20131126_18:55:25:623_IST [main] mortbay.log: jetty-6.1.26 > ERROR 20131126_18:55:25:660_IST [main] mortbay.log: Failed startup of > context org.mortbay.jetty.webapp.WebAppContext@7809facf{/,null} > java.lang.NullPointerException > at org.mortbay.resource.Resource.newResource(Resource.java:141) > at org.mortbay.resource.Resource.newResource(Resource.java:121) > at > org.mortbay.jetty.webapp.WebAppContext.resolveWebApp(WebAppContext.java:924) > at > org.mortbay.jetty.webapp.WebAppContext.getWebInf(WebAppContext.java:832) > at > org.mortbay.jetty.webapp.WebInfConfiguration.configureClassLoader(WebInfConfiguration.java:62) > at > org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:489) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at > org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) > at org.mortbay.jetty.Server.doStart(Server.java:224) > at > org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) > at org.apache.blur.gui.HttpJettyServer.<init>(HttpJettyServer.java:93) > at > org.apache.blur.thrift.ThriftBlurControllerServer.createServer(ThriftBlurControllerServer.java:148) > at > org.apache.blur.thrift.ThriftBlurControllerServer.main(ThriftBlurControllerServer.java:76) > > > My problem is when i tried mvn exec:java > -Dexec.mainClass="org.apache.blur.shell.Main" -Dexec.args="localhost:40020" > then it opened blur shell to me.. Then i tried create -t testtable -c 11 > OR any other command then i get this error on console : > > blur (default)> create -t testtable -c 11 > org.apache.blur.thirdparty.thrift_0_9_0.TApplicationException: Invalid > method name: 'setUser' > at > org.apache.blur.thirdparty.thrift_0_9_0.TApplicationException.read(TApplicationException.java:108) > at > org.apache.blur.thirdparty.thrift_0_9_0.TServiceClient.receiveBase(TServiceClient.java:71) > at > org.apache.blur.thrift.generated.Blur$Client.recv_createTable(Blur.java:488) > at > org.apache.blur.thrift.generated.Blur$Client.createTable(Blur.java:475) > 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.blur.thrift.BlurClient$BlurClientInvocationHandler$1.call(BlurClient.java:82) > at > org.apache.blur.thrift.BlurClient$BlurClientInvocationHandler$1.call(BlurClient.java:70) > at > org.apache.blur.thrift.AbstractCommand.call(AbstractCommand.java:62) > at > org.apache.blur.thrift.BlurClientManager.execute(BlurClientManager.java:180) > at > org.apache.blur.thrift.BlurClient$BlurClientInvocationHandler.invoke(BlurClient.java:70) > at com.sun.proxy.$Proxy18.createTable(Unknown Source) > at > org.apache.blur.shell.CreateTableCommand.doit(CreateTableCommand.java:100) > at org.apache.blur.shell.Main.main(Main.java:577) > 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.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:297) > at java.lang.Thread.run(Thread.java:724) > > Please help me with this... > > NARESH > > On Tue, Nov 26, 2013 at 8:56 AM, Aaron McCurry <[email protected]> wrote: > >> On Mon, Nov 25, 2013 at 2:56 AM, Naresh Yadav <[email protected]> >> wrote: >> >> > hi, >> > >> > If anybody has experience in running blur on windows then please help >> > me... >> >> >> > I am attempting single node cluster just to test blur first.. >> > >> > Hadoop 2 release provides bat files for windows so my hadoop is up and >> > running on hdfs://localhost:9000 in just an hour on windows 7.. >> > >> > I request Blur team if they can also provide bat files as separate >> download >> > link then it will be big help for us. >> > >> >> Would you mind to add a jira issue for it? >> https://issues.apache.org/jira/browse/BLUR >> >> >> > >> > As there are no bat files in blur latest release so i had taken way to >> run >> > them using Cygwin....But while running them i am faced first problem as >> > $ ./start-all.sh >> > /usr/bin/env: bash: No such file or directory >> > >> >> It sounds like bash is missing from cygwin. >> >> >> > >> > I know i will face many other problems as doing first time and also i do >> > not have >> > knowledge of shell scripts(sh).. >> > >> > I request users who had done this already on windows please give tips on >> > possible problems so that i can get blur running in least time.... >> > >> >> Ok, I can try to get a batch file together with all the jar files on the >> class path. However if you simply run: >> java -cp %CLASSPATH% org.apache.blur.thrift.ThriftBlurShardServer -s 0 >> >> Given that the CLASSPATH contains all the jars in the lib/ dir and the >> lib/hadoop-*/hadoop-*jar and the lib/hadoop-*/lib/*.jar. Also conf/ >> directory should be first on the class path so that the >> blur-site.properties file can be found. >> >> Another option is use maven as your class path generator: >> >> If you have maven up and running you should be able to run "mvn install >> -DskipTests" from the src artifact. After all the projects have built cd >> into the blur-core project and run: >> >> mvn exec:java >> -Dexec.mainClass="org.apache.blur.thrift.ThriftBlurShardServer" >> -Dexec.args="-s 0" >> >> Once a single shard server is running you should be able to connect to it >> via the shell by cd to the blur-shell project and running: >> >> mvn exec:java -Dexec.mainClass="org.apache.blur.shell.Main" >> -Dexec.args="localhost:40020" >> >> Both options assume that you are running ZooKeeper locally. >> >> Let us know what you find. >> >> Aaron >> >> >> > >> > >> > Thanks >> > NARESH >> > >> > >> > >> > >> > >> > >> > Thanks, >> > Naresh >> > >> > > > >
