[
https://issues.apache.org/jira/browse/ACCUMULO-601?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13280537#comment-13280537
]
Keith Turner commented on ACCUMULO-601:
---------------------------------------
In 1.4 createtable and deletetable start FATE operations. You can see if any
of those are stuck with the following command.
{noformat}
./bin/accumulo org.apache.accumulo.server.fate.Admin print
{noformat}
If the client can not even reach the master to start a FATE op, then the
nothing will be printed.
You can also enable log4j tracing in your client code to see if this reveals
anything of interest.
{code}
public class CreateTableTest {
/**
* @param args
*/
public static void main(String[] args) throws Exception {
org.apache.log4j.Logger.getLogger("org.apache.accumulo.core.client").setLevel(Level.TRACE);
ZooKeeperInstance zki = new ZooKeeperInstance("test14", "localhost");
Connector conn = zki.getConnector("user", "pass");
conn.tableOperations().create("foo1");
}
}
{code}
I saw the output below when running the program above. You can see it getting
connections to the master to walk the fate operation through its steps.
{noformat}
$ ./bin/accumulo org.apache.accumulo.core.CreateTableTest
21 17:58:33,883 [impl.ThriftTransportPool] TRACE: Creating new connection to
connection to 127.0.0.1:9997:9997
21 17:58:34,498 [impl.ThriftTransportPool] TRACE: Returned connection
127.0.0.1:9997:9997 (120000) ioCount : 122
21 17:58:34,584 [client.ZooKeeperInstance] TRACE: tid=12 oid=0 Looking up
master location in zoocache.
21 17:58:34,596 [client.ZooKeeperInstance] TRACE: tid=12 oid=0 Found master at
localhost:9999 in 0.005 secs
21 17:58:34,601 [impl.ThriftTransportPool] TRACE: Creating new connection to
connection to localhost:9999:9999
21 17:58:34,660 [impl.ThriftTransportPool] TRACE: Returned connection
localhost:9999:9999 (0) ioCount : 116
21 17:58:34,661 [client.ZooKeeperInstance] TRACE: tid=12 oid=1 Looking up
master location in zoocache.
21 17:58:34,661 [client.ZooKeeperInstance] TRACE: tid=12 oid=1 Found master at
localhost:9999 in 0.000 secs
21 17:58:34,662 [impl.ThriftTransportPool] TRACE: Using existing connection to
localhost:9999:9999
21 17:58:34,709 [impl.ThriftTransportPool] TRACE: Returned connection
localhost:9999:9999 (0) ioCount : 168
21 17:58:34,709 [client.ZooKeeperInstance] TRACE: tid=12 oid=2 Looking up
master location in zoocache.
21 17:58:34,711 [client.ZooKeeperInstance] TRACE: tid=12 oid=2 Found master at
localhost:9999 in 0.000 secs
21 17:58:34,712 [impl.ThriftTransportPool] TRACE: Using existing connection to
localhost:9999:9999
21 17:58:35,748 [impl.ThriftTransportPool] TRACE: Returned connection
localhost:9999:9999 (0) ioCount : 132
21 17:58:35,749 [client.ZooKeeperInstance] TRACE: tid=12 oid=3 Looking up
master location in zoocache.
21 17:58:35,749 [client.ZooKeeperInstance] TRACE: tid=12 oid=3 Found master at
localhost:9999 in 0.000 secs
21 17:58:35,749 [impl.ThriftTransportPool] TRACE: Using existing connection to
localhost:9999:9999
21 17:58:35,806 [impl.ThriftTransportPool] TRACE: Returned connection
localhost:9999:9999 (0) ioCount : 96
$
{noformat}
> Cannot create or delete tables via Java after upgrade to accumulo 1.4
> ---------------------------------------------------------------------
>
> Key: ACCUMULO-601
> URL: https://issues.apache.org/jira/browse/ACCUMULO-601
> Project: Accumulo
> Issue Type: Bug
> Components: client
> Affects Versions: 1.4.0
> Environment: Cloud was upgraded from Cloudbase 1.3.4 to Accumulo
> 1.3.5 and then upgraded to accumulo 1.4.0. Hadoop version is 0.20.2r911707
> Reporter: Steven Pine
> Assignee: Billie Rinaldi
>
> After upgrade I am unable to create or delete a table via java using either
> the
> conn.tableOperations().delete(tableName);
> and/or
> conn.tableOperations().create(tableName);
> The error presents itself by hanging the code when it executes this line in
> the code.
> Important:
> Table scans via java are working fine.
> Table mutations via java also work fine.
> The same user account can create and deleted the table via accumulo shell.
> The cause of the code hanging cannot be determined further since there is
> nothing in the Eclipse logs or Server logs that provide any more information.
> I can verify that the connection to Zookeeper completes successfully...
> however there is no indication after that on the Server side that a call is
> being made to Accumulo to create/delete the table.
--
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