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 A0A602009EE for ; Wed, 18 May 2016 13:24:38 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9F2BF160A00; Wed, 18 May 2016 11:24:38 +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 C178B1609B1 for ; Wed, 18 May 2016 13:24:37 +0200 (CEST) Received: (qmail 9426 invoked by uid 500); 18 May 2016 11:24:36 -0000 Mailing-List: contact user-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hive.apache.org Delivered-To: mailing list user@hive.apache.org Received: (qmail 9416 invoked by uid 99); 18 May 2016 11:24:36 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 May 2016 11:24:36 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 18F7118056A for ; Wed, 18 May 2016 11:24:36 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.88 X-Spam-Level: * X-Spam-Status: No, score=1.88 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, WEIRD_PORT=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id FpUODhbQ5ApV for ; Wed, 18 May 2016 11:24:34 +0000 (UTC) Received: from mail-yw0-f178.google.com (mail-yw0-f178.google.com [209.85.161.178]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id F06485F475 for ; Wed, 18 May 2016 11:24:33 +0000 (UTC) Received: by mail-yw0-f178.google.com with SMTP id x194so44348355ywd.0 for ; Wed, 18 May 2016 04:24:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to; bh=Avb4V3vnTtmNFlvHgnzMj7orCDtSsKf3bSzXRp3CJe4=; b=zZaXj7a/eJW6z8JmQzGNxmkKYcq67vUCrRKCxj8QJlcr01qwUEx69lf8W+H8zoIP/i cP9rQOBln+cWh+mtHawMrBiIUtM8BiaEVonJ5ZF0UxdALBEVl2I7Iw2jw+8zqyr4EIwZ mdPOOpbM68C13PZX1Df1ngzNPvrNIUJ8PlSE28fAoPXRl7LIjIEAJ8fqvUfK4mFvX5/B dUWrMLZIH2SYKAL4SIjqUrcS/hUVvZozpF2P3b79Trt1BghW4nUKtvPP58wd2JBGsSVS zrH6NZP01AJFbHX3hDDhQt5Amx18AAcnvMFciw/YxXtdJY3ySVoOFOEwq8jA69QyyrDn z1FQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=Avb4V3vnTtmNFlvHgnzMj7orCDtSsKf3bSzXRp3CJe4=; b=FwDBNhJ4JEak/ChCbYiGJqJp9ekyan7oO/KnUa00KjReP7yAdG9D6GBXWNqP1rG0uq 5LLgML7taDfMrwTB3od9AwsNedGNGqIOyaxo1D5bZYup5UYB6UxfjfZJm47fTxagEpOp RpTnv8Z/hmB473fKrJ8XLoWCqxLkUYKQjPMHYdkNnUUbqiooEOsZDubGcB+2ulCK7H5N GuOMzpKY4BXJRELxRt8KLhewj0mqgJmzJM5jLM8YX8nb4wBYRMgrueo/KP5r0BfgCpWP PQawLWKPnwmNe+3sWEkoYwD2B27Mwa792ouFQyumCAZRqR6t99RLo8Ydy3f6nDQPvPgC wjmA== X-Gm-Message-State: AOPr4FXimFQkIPy9s1h+pHOAaBU0NJPcrlAh+Y0qYcSeQD9BLzq2zC1srQL68oYoecgjiJyyXzE4oJ/NcCdSTA== MIME-Version: 1.0 X-Received: by 10.37.37.81 with SMTP id l78mr3563342ybl.112.1463570673526; Wed, 18 May 2016 04:24:33 -0700 (PDT) Received: by 10.37.22.68 with HTTP; Wed, 18 May 2016 04:24:33 -0700 (PDT) Date: Wed, 18 May 2016 19:24:33 +0800 Message-ID: Subject: Hello, I have an issue about hcatalog From: Mark Memory To: user@hive.apache.org Content-Type: multipart/alternative; boundary=001a113d48d21998ee05331c1a51 archived-at: Wed, 18 May 2016 11:24:38 -0000 --001a113d48d21998ee05331c1a51 Content-Type: text/plain; charset=UTF-8 hello guys, sorry to bother you. I'm using hcatalog to write hive tables, but I don't know how to do with namenode HA my code was copied from https://github.com/apache/hive/blob/master/hcatalog/core/src/test/java/org/apache/hive/hcatalog/data/TestReaderWriter.java *below is my config:* hiveConf.setVar(HiveConf.ConfVars.HADOOPBIN, "/opt/modules/hadoop/bin"); hiveConf.setVar(HiveConf.ConfVars.LOCALSCRATCHDIR, "/opt/modules/hive/ temp"); hiveConf.setVar(HiveConf.ConfVars.DOWNLOADED_RESOURCES_DIR, "/opt/modules/hive/temp"); hiveConf.setBoolVar(HiveConf.ConfVars.HIVE_SUPPORT_CONCURRENCY, false); hiveConf.setVar(HiveConf.ConfVars.METASTOREWAREHOUSE, "/warehouse"); hiveConf.setVar(HiveConf.ConfVars.METASTOREURIS, "thrift:// 127.0.0.1:9083"); hiveConf.setVar(HiveConf.ConfVars.METASTORE_CONNECTION_DRIVER, "com.mysql.jdbc.Driver"); hiveConf.setVar(HiveConf.ConfVars.METASTORECONNECTURLKEY, "jdbc:mysql:// 192.168.5.29:3306/hive?createDatabaseIfNotExist=true"); hiveConf.setVar(HiveConf.ConfVars.METASTORE_CONNECTION_USER_NAME, "hive"); hiveConf.setVar(HiveConf.ConfVars.METASTOREPWD, "123456"); hiveConf.setVar(HiveConf.ConfVars.HIVEHISTORYFILELOC, "/opt/modules/hive/temp"); *and the error is:* Caused by: java.lang.IllegalArgumentException: java.net.UnknownHostException: cluster at org.apache.hadoop.security.SecurityUtil.buildTokenService(SecurityUtil.java:374) at org.apache.hadoop.hdfs.NameNodeProxies.createNonHAProxy(NameNodeProxies.java:312) at org.apache.hadoop.hdfs.NameNodeProxies.createProxy(NameNodeProxies.java:178) at org.apache.hadoop.hdfs.DFSClient.(DFSClient.java:665) *Is anyone can help me? thank you !!!!* --001a113d48d21998ee05331c1a51 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
hello guys, sorry to bother you.

I'm usin= g hcatalog to write hive tables, but I don't know how to do with nameno= de HA

below is my config:

=C2=A0 =C2=A0 hiveConf.setVar(HiveConf.ConfVars.HADOOPBIN, "/opt/mo= dules/hadoop/bin");

=C2=A0 =C2=A0 hiveConf.setVar(HiveConf.ConfVars.LOCALSCRATCHDIR, "/o= pt/modules/hive/temp");

=C2=A0 =C2=A0 hiveConf.setVar(HiveConf.ConfVars.DOWNLOADED_RESOURCES_= DIR, "/opt/modules/hive/temp");

=

=C2=A0 =C2=A0 hiveConf.setBoolVar(HiveConf.ConfVars.HIVE= _SUPPORT_CONCURRENCY, false);

=C2=A0 =C2=A0 hiv= eConf.setVar(HiveConf.ConfVars.METASTOREWAREHOUSE, "/warehouse");=

=C2=A0 =C2=A0 hiveConf.setVar(HiveConf.ConfVar= s.METASTOREURIS, "thrift://127.0.0.1= :9083");

=C2=A0 =C2=A0 hiveConf.setVar= (HiveConf.ConfVars.METASTORE_CONNECTION_DRIVER, "com.mysql.jdbc.Driver= ");

=C2=A0 =C2=A0 hiveConf.setVar(HiveConf= .ConfVars.METASTORECONNECTURLKEY, "jdbc:mysql://192.168.5.29:3306/hive?= createDatabaseIfNotExist=3Dtrue");

=C2= =A0 =C2=A0 hiveConf.setVar(HiveConf.ConfVars.METASTORE_CONNECTION_USER_NAME= , "hive");

=C2=A0 =C2=A0 hiveConf.set= Var(HiveConf.ConfVars.METASTOREPWD, "123456");

=C2=A0 =C2=A0 hiveConf.setVar(HiveConf.ConfVars.HIVEHISTORYFILELO= C, "/opt/modules/hive/temp");

and the error is:

Ca= used by: java.lang.IllegalArgumentException: java.net.UnknownHostException:= cluster

at org.apache.= hadoop.security.SecurityUtil.buildTokenService(SecurityUtil.java:374)

at org.apache.hadoop.hdfs.Na= meNodeProxies.createNonHAProxy(NameNodeProxies.java:312)

at org.apache.hadoop.hdfs.NameNodeProxies= .createProxy(NameNodeProxies.java:178)

<= span class=3D"">at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.= java:665)

Is anyone can help me? thank you = !!!!

--001a113d48d21998ee05331c1a51--