Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 1F642200CBD for ; Thu, 6 Jul 2017 22:17:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 1E15D167548; Thu, 6 Jul 2017 20:17:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 63B36167546 for ; Thu, 6 Jul 2017 22:17:04 +0200 (CEST) Received: (qmail 79045 invoked by uid 500); 6 Jul 2017 20:17:03 -0000 Mailing-List: contact dev-help@tephra.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tephra.incubator.apache.org Delivered-To: mailing list dev@tephra.incubator.apache.org Received: (qmail 79034 invoked by uid 99); 6 Jul 2017 20:17:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Jul 2017 20:17:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 106EC1AA2DC for ; Thu, 6 Jul 2017 20:17:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id b-F7gpybPprO for ; Thu, 6 Jul 2017 20:17:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id F27EC5FC9D for ; Thu, 6 Jul 2017 20:17:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 245B3E0DEA for ; Thu, 6 Jul 2017 20:17:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 5735F2467C for ; Thu, 6 Jul 2017 20:17:00 +0000 (UTC) Date: Thu, 6 Jul 2017 20:17:00 +0000 (UTC) From: "James Taylor (JIRA)" To: dev@tephra.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (TEPHRA-237) Unable to discover tx service MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 06 Jul 2017 20:17:05 -0000 [ https://issues.apache.org/jira/browse/TEPHRA-237?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16077150#comment-16077150 ] James Taylor commented on TEPHRA-237: ------------------------------------- FYI, DDL statements are not transactional. I'd recommend using a different connection for those rather than mix those with your DML as DDL statements do an implicit rollback before they operate. > Unable to discover tx service > ----------------------------- > > Key: TEPHRA-237 > URL: https://issues.apache.org/jira/browse/TEPHRA-237 > Project: Tephra > Issue Type: Bug > Environment: Hbase Version : 1.2.6 > Phoenix Version : 4.10.0-Hbase-1.2 > Reporter: vishal > Assignee: Poorna Chandra > > My Java prog is: > {code:java} > Properties connectionProps = new Properties(); > connectionProps.put("phoenix.schema.isNamespaceMappingEnabled", "true");//client+server > connectionProps.put("phoenix.schema.mapSystemTablesToNamespace","true");//client+server > connectionProps.put("phoenix.connection.autoCommit", "true");//client > connectionProps.put("phoenix.transactions.enabled", "true");//client+server > Connection connection = DriverManager.getConnection("jdbc:phoenix:localhost:2181",connectionProps); > Statement st = connection.createStatement(); > st.executeUpdate("CREATE TABLE MYTEST1.MYTAB (employee_id integer not null primary key, name varchar) TRANSACTIONAL=true"); > System.out.println("table is created"); > {code} > hbase-site.xml file > ------------ > {code:java} > > > hbase.rootdir > file:/Users/sai/projects/vishal/software/hbase-data > > > > hbase.zookeeper.property.dataDir > /Users/sai/projects/vishal/software/zookeeper-data > > > phoenix.schema.isNamespaceMappingEnabled > true > > > phoenix.schema.mapSystemTablesToNamespace > true > > > phoenix.transactions.enabled > true > > > data.tx.snapshot.dir > /Users/sai/projects/vishal/software/tephra/snapshots > > > {code} > But I am getting above error?? > What else i need to do ?? -- This message was sent by Atlassian JIRA (v6.4.14#64029)