Return-Path: X-Original-To: apmail-hive-issues-archive@minotaur.apache.org Delivered-To: apmail-hive-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BF96B19456 for ; Mon, 11 Apr 2016 15:44:25 +0000 (UTC) Received: (qmail 92287 invoked by uid 500); 11 Apr 2016 15:44:25 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 92255 invoked by uid 500); 11 Apr 2016 15:44:25 -0000 Mailing-List: contact issues-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list issues@hive.apache.org Received: (qmail 92242 invoked by uid 99); 11 Apr 2016 15:44:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Apr 2016 15:44:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 7952D2C1F5C for ; Mon, 11 Apr 2016 15:44:25 +0000 (UTC) Date: Mon, 11 Apr 2016 15:44:25 +0000 (UTC) From: "Aleksey Vovchenko (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-13460) ANALYZE TABLE COMPUTE STATISTICS FAILED max key length is 1000 bytes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-13460?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Aleksey Vovchenko updated HIVE-13460: ------------------------------------- Fix Version/s: 1.2.0 > ANALYZE TABLE COMPUTE STATISTICS FAILED max key length is 1000 bytes > -------------------------------------------------------------------- > > Key: HIVE-13460 > URL: https://issues.apache.org/jira/browse/HIVE-13460 > Project: Hive > Issue Type: Bug > Components: Hive > Affects Versions: 1.0.1 > Reporter: Aleksey Vovchenko > Assignee: Aleksey Vovchenko > Fix For: 1.2.0 > > Attachments: HIVE-13460-branch-1.0.2.patch, HIVE-13460-branch-1.0.patch > > > When Hive configured to Store Statistics in MySQL we have next error: > {noformat} > 2016-04-08 15:53:28,047 ERROR [main]: jdbc.JDBCStatsPublisher (JDBCStatsPublisher.java:init(316)) - Error during JDBC initialization. > com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Specified key was too long; max key length is 767 bytes > {noformat} > If set MySql properties as: > {noformat} > set global innodb_large_prefix = ON; > set global innodb_file_format = BARRACUDA; > {noformat} > Now we have next Error: > {noformat} > 2016-04-08 15:56:05,552 ERROR [main]: jdbc.JDBCStatsPublisher (JDBCStatsPublisher.java:init(316)) - Error during JDBC initialization. > com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Specified key was too long; max key length is 3072 bytes > {noformat} > As a result of my investigation I figured out that MySQL does not allow to create primary key with size more than 3072 bytes. -- This message was sent by Atlassian JIRA (v6.3.4#6332)