incubator-blur-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Colton McInroy <col...@dosarrest.com>
Subject Creating/Managing tables saying table already exists
Date Thu, 26 Sep 2013 12:01:20 GMT
Hello All,

     I am trying to get blur operating on a virtual environment using 
gentoo as a base. I have compiled the latest version of blur as well as 
tried the 0.2.0 tagged version. Each time I go to try and create a 
table, I get an IOException saying the table already exists. Here is a 
basic example of what I have done...

hadoop@blur ~ $ tar xfz apache-blur-0.3.0-incubating-SNAPSHOT-bin.tar.gz
hadoop@blur ~ $ mv apache-blur-0.3.0-incubating-SNAPSHOT-bin blur
hadoop@blur ~ $ cd blur
hadoop@blur ~/blur $ bin/start-all.sh
localhost: ZooKeeper starting as process 9536.
localhost: Shard [0] starting as process 9598.
localhost: Controller [0] starting as process 9660.
hadoop@blur ~/blur $ bin/blur shell
blur (default)> create -t testtable -c 11 -l file:///tmp/testtable
java.io.IOException: Table [testtable] already exists.
blur (default)> enable testtable
java.io.IOException: Table [testtable] already enabled.
blur (default)> disable testtable
java.io.IOException: Table [testtable] already disabled.
blur (default)> remove testtable
blur (default)>

As one can see from the above commands, this is a fresh attempt at 
starting blur as the instructions on the site provide. I have tried the 
following versions of jdk with the same problem...

   [1]   icedtea-bin-6
   [2]   icedtea-bin-7
   [3]   oracle-jdk-bin-1.7
   [4]   sun-jdk-1.6

     Between attempts I made sure to delete /tmp/zk_data to avoid any 
possible problems it was causing. Each time I would experience the same 
problem when trying to create a table as a test. I tried this on a 
ubuntu virtualbox and it worked. I don't understand why there would be a 
difference between the two considering I tried the same versions of 
java. The ubuntu system was using openjdk 7 which is what gentoo calls 
icedtea-bin-7.

     When using debug and timed responses, here is what gets outputted 
when typing the same commands...

blur (default)> debug
debugging is now on
blur (default)> timed
timing of commands is now on
Last command took 0ms
blur (default)> create -t testtable -c 11 -l file:///tmp/testtable
TableDescriptor(enabled:true, shardCount:11, 
tableUri:file:///tmp/testtable, cluster:default, name:testtable, 
similarityClass:null, blockCaching:true, blockCachingFileTypes:null, 
readOnly:false, preCacheCols:null, tableProperties:null, 
strictTypes:false, defaultMissingFieldType:text, 
defaultMissingFieldLessIndexing:true, defaultMissingFieldProps:null)
java.io.IOException: Table [testtable] already exists.
BlurException(message:java.io.IOException: Table [testtable] already 
exists., stackTraceStr:java.lang.RuntimeException: java.io.IOException: 
Table [testtable] already exists.
         at 
org.apache.blur.manager.clusterstatus.ZookeeperClusterStatus.createTable(ZookeeperClusterStatus.java:744)
         at 
org.apache.blur.thrift.TableAdmin.createTable(TableAdmin.java:101)
         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.utils.BlurUtil$1.invoke(BlurUtil.java:183)
         at com.sun.proxy.$Proxy0.createTable(Unknown Source)
         at 
org.apache.blur.thrift.generated.Blur$Processor$createTable.getResult(Blur.java:2402)
         at 
org.apache.blur.thrift.generated.Blur$Processor$createTable.getResult(Blur.java:2386)
         at 
org.apache.blur.thirdparty.thrift_0_9_0.ProcessFunction.process(ProcessFunction.java:54)
         at 
org.apache.blur.thirdparty.thrift_0_9_0.TBaseProcessor.process(TBaseProcessor.java:57)
         at 
org.apache.blur.thrift.server.AbstractNonblockingServer$FrameBuffer.invoke(AbstractNonblockingServer.java:515)
         at org.apache.blur.thrift.server.Invocation.run(Invocation.java:34)
         at 
org.apache.blur.concurrent.ThreadWatcher$ThreadWatcherExecutorService$1.run(ThreadWatcher.java:127)
         at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
         at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
         at java.lang.Thread.run(Thread.java:724)
Caused by: java.io.IOException: Table [testtable] already exists.
         at 
org.apache.blur.manager.clusterstatus.ZookeeperClusterStatus.createTable(ZookeeperClusterStatus.java:722)
         ... 17 more
, errorType:UNKNOWN)
         at 
org.apache.blur.thrift.generated.Blur$createTable_result$createTable_resultStandardScheme.read(Blur.java:3818)
         at 
org.apache.blur.thrift.generated.Blur$createTable_result$createTable_resultStandardScheme.read(Blur.java:3804)
         at 
org.apache.blur.thrift.generated.Blur$createTable_result.read(Blur.java:3754)
         at 
org.apache.blur.thirdparty.thrift_0_9_0.TServiceClient.receiveBase(TServiceClient.java:78)
         at 
org.apache.blur.thrift.generated.Blur$Client.recv_createTable(Blur.java:458)
         at 
org.apache.blur.thrift.generated.Blur$Client.createTable(Blur.java:445)
         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:59)
         at 
org.apache.blur.thrift.BlurClient$BlurClientInvocationHandler$1.call(BlurClient.java:55)
         at 
org.apache.blur.thrift.AbstractCommand.call(AbstractCommand.java:62)
         at 
org.apache.blur.thrift.BlurClientManager.execute(BlurClientManager.java:167)
         at 
org.apache.blur.thrift.BlurClient$BlurClientInvocationHandler.invoke(BlurClient.java:55)
         at com.sun.proxy.$Proxy0.createTable(Unknown Source)
         at 
org.apache.blur.shell.CreateTableCommand.doit(CreateTableCommand.java:100)
         at org.apache.blur.shell.Main.main(Main.java:471)
Last command took 61289ms
blur (default)> enable testtable
java.io.IOException: Table [testtable] already enabled.
BlurException(message:java.io.IOException: Table [testtable] already 
enabled., stackTraceStr:java.lang.RuntimeException: java.io.IOException: 
Table [testtable] already enabled.
         at 
org.apache.blur.manager.clusterstatus.ZookeeperClusterStatus.enableTable(ZookeeperClusterStatus.java:809)
         at 
org.apache.blur.thrift.TableAdmin.enableTable(TableAdmin.java:137)
         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.utils.BlurUtil$1.invoke(BlurUtil.java:183)
         at com.sun.proxy.$Proxy0.enableTable(Unknown Source)
         at 
org.apache.blur.thrift.generated.Blur$Processor$enableTable.getResult(Blur.java:2426)
         at 
org.apache.blur.thrift.generated.Blur$Processor$enableTable.getResult(Blur.java:2410)
         at 
org.apache.blur.thirdparty.thrift_0_9_0.ProcessFunction.process(ProcessFunction.java:54)
         at 
org.apache.blur.thirdparty.thrift_0_9_0.TBaseProcessor.process(TBaseProcessor.java:57)
         at 
org.apache.blur.thrift.server.AbstractNonblockingServer$FrameBuffer.invoke(AbstractNonblockingServer.java:515)
         at org.apache.blur.thrift.server.Invocation.run(Invocation.java:34)
         at 
org.apache.blur.concurrent.ThreadWatcher$ThreadWatcherExecutorService$1.run(ThreadWatcher.java:127)
         at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
         at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
         at java.lang.Thread.run(Thread.java:724)
Caused by: java.io.IOException: Table [testtable] already enabled.
         at 
org.apache.blur.manager.clusterstatus.ZookeeperClusterStatus.enableTable(ZookeeperClusterStatus.java:805)
         ... 17 more
, errorType:UNKNOWN)
         at 
org.apache.blur.thrift.generated.Blur$enableTable_result$enableTable_resultStandardScheme.read(Blur.java:4540)
         at 
org.apache.blur.thrift.generated.Blur$enableTable_result$enableTable_resultStandardScheme.read(Blur.java:4526)
         at 
org.apache.blur.thrift.generated.Blur$enableTable_result.read(Blur.java:4476)
         at 
org.apache.blur.thirdparty.thrift_0_9_0.TServiceClient.receiveBase(TServiceClient.java:78)
         at 
org.apache.blur.thrift.generated.Blur$Client.recv_enableTable(Blur.java:481)
         at 
org.apache.blur.thrift.generated.Blur$Client.enableTable(Blur.java:468)
         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:59)
         at 
org.apache.blur.thrift.BlurClient$BlurClientInvocationHandler$1.call(BlurClient.java:55)
         at 
org.apache.blur.thrift.AbstractCommand.call(AbstractCommand.java:62)
         at 
org.apache.blur.thrift.BlurClientManager.execute(BlurClientManager.java:167)
         at 
org.apache.blur.thrift.BlurClient$BlurClientInvocationHandler.invoke(BlurClient.java:55)
         at com.sun.proxy.$Proxy0.enableTable(Unknown Source)
         at 
org.apache.blur.shell.EnableTableCommand.doit(EnableTableCommand.java:37)
         at org.apache.blur.shell.Main.main(Main.java:471)
Last command took 3ms
blur (default)> disable testtable
java.io.IOException: Table [testtable] already disabled.
BlurException(message:java.io.IOException: Table [testtable] already 
disabled., stackTraceStr:java.lang.RuntimeException: 
java.io.IOException: Table [testtable] already disabled.
         at 
org.apache.blur.manager.clusterstatus.ZookeeperClusterStatus.disableTable(ZookeeperClusterStatus.java:784)
         at 
org.apache.blur.thrift.TableAdmin.disableTable(TableAdmin.java:120)
         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.utils.BlurUtil$1.invoke(BlurUtil.java:183)
         at com.sun.proxy.$Proxy0.disableTable(Unknown Source)
         at 
org.apache.blur.thrift.generated.Blur$Processor$disableTable.getResult(Blur.java:2450)
         at 
org.apache.blur.thrift.generated.Blur$Processor$disableTable.getResult(Blur.java:2434)
         at 
org.apache.blur.thirdparty.thrift_0_9_0.ProcessFunction.process(ProcessFunction.java:54)
         at 
org.apache.blur.thirdparty.thrift_0_9_0.TBaseProcessor.process(TBaseProcessor.java:57)
         at 
org.apache.blur.thrift.server.AbstractNonblockingServer$FrameBuffer.invoke(AbstractNonblockingServer.java:515)
         at org.apache.blur.thrift.server.Invocation.run(Invocation.java:34)
         at 
org.apache.blur.concurrent.ThreadWatcher$ThreadWatcherExecutorService$1.run(ThreadWatcher.java:127)
         at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
         at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
         at java.lang.Thread.run(Thread.java:724)
Caused by: java.io.IOException: Table [testtable] already disabled.
         at 
org.apache.blur.manager.clusterstatus.ZookeeperClusterStatus.disableTable(ZookeeperClusterStatus.java:780)
         ... 17 more
, errorType:UNKNOWN)
         at 
org.apache.blur.thrift.generated.Blur$disableTable_result$disableTable_resultStandardScheme.read(Blur.java:5262)
         at 
org.apache.blur.thrift.generated.Blur$disableTable_result$disableTable_resultStandardScheme.read(Blur.java:5248)
         at 
org.apache.blur.thrift.generated.Blur$disableTable_result.read(Blur.java:5198)
         at 
org.apache.blur.thirdparty.thrift_0_9_0.TServiceClient.receiveBase(TServiceClient.java:78)
         at 
org.apache.blur.thrift.generated.Blur$Client.recv_disableTable(Blur.java:504)
         at 
org.apache.blur.thrift.generated.Blur$Client.disableTable(Blur.java:491)
         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:59)
         at 
org.apache.blur.thrift.BlurClient$BlurClientInvocationHandler$1.call(BlurClient.java:55)
         at 
org.apache.blur.thrift.AbstractCommand.call(AbstractCommand.java:62)
         at 
org.apache.blur.thrift.BlurClientManager.execute(BlurClientManager.java:167)
         at 
org.apache.blur.thrift.BlurClient$BlurClientInvocationHandler.invoke(BlurClient.java:55)
         at com.sun.proxy.$Proxy0.disableTable(Unknown Source)
         at 
org.apache.blur.shell.DisableTableCommand.doit(DisableTableCommand.java:35)
         at org.apache.blur.shell.Main.main(Main.java:471)
Last command took 61285ms
blur (default)> remove testtable
Last command took 38ms
blur (default)>

     I emailed Aaron directly who suggested I make sure I clear the 
/tmp/zk_data directory, and also requested that I submit this to the 
mailing list, so here it is.

     Any help in resolving this would be greatly appreciated.

-- 
Thanks,
Colton McInroy

  * Director of Security Engineering

	
Phone
(Toll Free) 	
_US_ 	(888)-818-1344 Press 2
_UK_ 	0-800-635-0551 Press 2

My Extension 	101
24/7 Support 	support@dosarrest.com <mailto:support@dosarrest.com>
Email 	colton@dosarrest.com <mailto:colton@dosarrest.com>
Website 	http://www.dosarrest.com


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message