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 19392200B9D for ; Thu, 13 Oct 2016 11:01:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 1616B160AF6; Thu, 13 Oct 2016 09:01:23 +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 5F706160AE3 for ; Thu, 13 Oct 2016 11:01:22 +0200 (CEST) Received: (qmail 93844 invoked by uid 500); 13 Oct 2016 09:01:21 -0000 Mailing-List: contact issues-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list issues@ambari.apache.org Received: (qmail 93829 invoked by uid 99); 13 Oct 2016 09:01:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Oct 2016 09:01:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 6B3BA2C4C71 for ; Thu, 13 Oct 2016 09:01:21 +0000 (UTC) Date: Thu, 13 Oct 2016 09:01:21 +0000 (UTC) From: "Nitiraj Singh Rathore (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-18583) Ambari Hive View 'Upload Table' does not support UTF8 files with BOM MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 13 Oct 2016 09:01:23 -0000 [ https://issues.apache.org/jira/browse/AMBARI-18583?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nitiraj Singh Rathore updated AMBARI-18583: ------------------------------------------- Attachment: AMBARI-18583_branch-2.5.patch > Ambari Hive View 'Upload Table' does not support UTF8 files with BOM > -------------------------------------------------------------------- > > Key: AMBARI-18583 > URL: https://issues.apache.org/jira/browse/AMBARI-18583 > Project: Ambari > Issue Type: Bug > Components: ambari-views > Affects Versions: 2.2.2 > Reporter: Nitiraj Singh Rathore > Assignee: Nitiraj Singh Rathore > Fix For: 2.5.0 > > Attachments: AMBARI-18583_branch-2.5.patch > > > PROBLEM: Ambari Hive view throws an E090 HiveClientFormattedException exc= eption when trying to create a table via the 'Upload Table' function when t= he file contains the BOM for UTF8 (Byte Order Mark - 0xEF 0xBB 0xBF) . The = same file has no problem being loaded when saved without the BOM (via Subli= me Text). Deleting the contents of the first column heading and retyping it= fixes the issue > STEPS TO REPRODUCE: Download attached CSV file and try to upload table vi= a Ambari 2.2.2 view. > EXPECTED RESULT: Table previews correctly, so expected to be able to make= the hive table > ACTUAL RESULT: Ambari view throws the 'E090 HiveClientFormattedException'= error, and the hiverserver2.log file throws the following error: > 2016-08-01 15:29:57,284 INFO [HiveServer2-Handler-Pool: Thread-32]: pars= e.ParseDriver (ParseDriver.java:parse(185)) - Parsing command: create table= recordsView2 (=EF=BF=BDnengetu INT, kanji STRING) STORED AS ORC > 2016-08-01 15:29:57,285 ERROR [HiveServer2-Handler-Pool: Thread-32]: ql.D= river (SessionState.java:printError(932)) - FAILED: ParseException line 1:2= 7 character '=EF=BF=BD' not supported here > org.apache.hadoop.hive.ql.parse.ParseException: line 1:27 character '=EF= =BF=BD' not supported here > =09at org.apache.hadoop.hive.ql.parse.ParseDriver.parse(ParseDriver.java:= 211) > =09at org.apache.hadoop.hive.ql.parse.ParseDriver.parse(ParseDriver.java:= 166) > =09at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:428) > =09at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:316) > =09at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:1181) > =09at org.apache.hadoop.hive.ql.Driver.compileAndRespond(Driver.java:1175= ) > =09at org.apache.hive.service.cli.operation.SQLOperation.prepare(SQLOpera= tion.java:110) > =09at org.apache.hive.service.cli.operation.SQLOperation.runInternal(SQLO= peration.java:181) > =09at org.apache.hive.service.cli.operation.Operation.run(Operation.java:= 257) > =09at org.apache.hive.service.cli.session.HiveSessionImpl.executeStatemen= tInternal(HiveSessionImpl.java:419) > =09at org.apache.hive.service.cli.session.HiveSessionImpl.executeStatemen= tAsync(HiveSessionImpl.java:406) > =09at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > =09at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImp= l.java:57) > =09at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc= essorImpl.java:43) > =09at java.lang.reflect.Method.invoke(Method.java:606) > =09at org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSes= sionProxy.java:78) > =09at org.apache.hive.service.cli.session.HiveSessionProxy.access$000(Hiv= eSessionProxy.java:36) > =09at org.apache.hive.service.cli.session.HiveSessionProxy$1.run(HiveSess= ionProxy.java:63) > =09at java.security.AccessController.doPrivileged(Native Method) > =09at javax.security.auth.Subject.doAs(Subject.java:415) > =09at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInfor= mation.java:1657) > =09at org.apache.hive.service.cli.session.HiveSessionProxy.invoke(HiveSes= sionProxy.java:59) > =09at com.sun.proxy.$Proxy19.executeStatementAsync(Unknown Source) > =09at org.apache.hive.service.cli.CLIService.executeStatementAsync(CLISer= vice.java:274) > =09at org.apache.hive.service.cli.thrift.ThriftCLIService.ExecuteStatemen= t(ThriftCLIService.java:486) > =09at org.apache.hive.service.cli.thrift.TCLIService$Processor$ExecuteSta= tement.getResult(TCLIService.java:1317) > =09at org.apache.hive.service.cli.thrift.TCLIService$Processor$ExecuteSta= tement.getResult(TCLIService.java:1302) > =09at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39) > =09at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39) > =09at org.apache.hive.service.auth.TSetIpAddressProcessor.process(TSetIpA= ddressProcessor.java:56) > =09at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThrea= dPoolServer.java:285) > =09at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecuto= r.java:1145) > =09at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecut= or.java:615) > =09at java.lang.Thread.run(Thread.java:745) -- This message was sent by Atlassian JIRA (v6.3.4#6332)