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 776AF200CCC for ; Fri, 7 Jul 2017 06:44:11 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 75F1F168201; Fri, 7 Jul 2017 04:44:11 +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 BD711168200 for ; Fri, 7 Jul 2017 06:44:10 +0200 (CEST) Received: (qmail 10570 invoked by uid 500); 7 Jul 2017 04:44:10 -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 10559 invoked by uid 99); 7 Jul 2017 04:44:09 -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; Fri, 07 Jul 2017 04:44:09 +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 6C0F01A0062 for ; Fri, 7 Jul 2017 04:44:09 +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-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id lP11hXIkGadr for ; Fri, 7 Jul 2017 04:44:08 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id EC1495FCD7 for ; Fri, 7 Jul 2017 04:44:06 +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 E6204E0D54 for ; Fri, 7 Jul 2017 04:44:04 +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 9974024690 for ; Fri, 7 Jul 2017 04:44:02 +0000 (UTC) Date: Fri, 7 Jul 2017 04:44:02 +0000 (UTC) From: "vishal (JIRA)" To: dev@tephra.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (TEPHRA-237) How to use Auto-Commit and transactions in Phoenix ?? MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 07 Jul 2017 04:44:11 -0000 [ https://issues.apache.org/jira/browse/TEPHRA-237?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] vishal updated TEPHRA-237: -------------------------- Summary: How to use Auto-Commit and transactions in Phoenix ?? (was: Unable to discover tx service) > How to use Auto-Commit and transactions in Phoenix ?? > ----------------------------------------------------- > > 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)