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 E2513200B4C for ; Thu, 7 Jul 2016 20:58:12 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E0FE6160A4F; Thu, 7 Jul 2016 18:58:12 +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 36451160A68 for ; Thu, 7 Jul 2016 20:58:12 +0200 (CEST) Received: (qmail 70559 invoked by uid 500); 7 Jul 2016 18:58:11 -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 70536 invoked by uid 99); 7 Jul 2016 18:58:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jul 2016 18:58:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 1113C2C02A8 for ; Thu, 7 Jul 2016 18:58:11 +0000 (UTC) Date: Thu, 7 Jul 2016 18:58:11 +0000 (UTC) From: "Hadoop QA (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-17611) DB setup fails for SQLServer due to incorrect table schema definition for extensionlink MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 07 Jul 2016 18:58:13 -0000 [ https://issues.apache.org/jira/browse/AMBARI-17611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15366598#comment-15366598 ] Hadoop QA commented on AMBARI-17611: ------------------------------------ {color:red}-1 overall{color}. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12816677/AMBARI-17611.branch-2.4.patch against trunk revision . {color:red}-1 patch{color}. The patch command could not apply the patch. Console output: https://builds.apache.org/job/Ambari-trunk-test-patch/7731//console This message is automatically generated. > DB setup fails for SQLServer due to incorrect table schema definition for extensionlink > --------------------------------------------------------------------------------------- > > Key: AMBARI-17611 > URL: https://issues.apache.org/jira/browse/AMBARI-17611 > Project: Ambari > Issue Type: Bug > Components: ambari-server > Affects Versions: 2.4.0 > Reporter: Alejandro Fernandez > Assignee: Alejandro Fernandez > Priority: Critical > Fix For: 2.4.0 > > Attachments: AMBARI-17611.branch-2.4.patch, AMBARI-17611.trunk.patch > > > Ambari db setup is failing on SQLServer, > {code} > 2016-07-06 22:54:54,209 - setup_ambari_db.py [2922] __main__ - INFO - Found ambari db related settings. jdbc connection string = jdbc:sqlserver://gy843wvttf.database.windows.net;databaseName=hdfspromdev60165c06b1904860934d820f20c3615dAmbariDb;user=hdfspromdev60165c06b1904860934d820f20c3615dAmbariDbLogin@gy843wvttf.database.windows.net;password=**HIDDEN**;trustServerCertificate=false;encrypt=true;hostNameInCertificate=*.database.windows.net > 2016-07-06 22:54:54,210 - setup_ambari_db.py [2922] __main__ - INFO - Running command: sudo java -jar /usr/lib/hdinsight-common/setup-ambari-db-1.0.jar **HIDDEN** /var/lib/ambari-server/resources/Ambari-DDL-SQLServer-CREATE.sql hdinsightwatchdog **HIDDEN** admin **HIDDEN** > 2016-07-06 22:54:56,459 - setup_ambari_db.py [2922] __main__ - ERROR - Failed to execute command. exit code = 1 > , out=Starting setting up ambari db... > Loading Sql JDBC driver > Reading table creation sql file: /var/lib/ambari-server/resources/Ambari-DDL-SQLServer-CREATE.sql > Finished loading file /var/lib/ambari-server/resources/Ambari-DDL-SQLServer-CREATE.sql > Trying to create a jdbc connection > Connection to db established > Connection auto commit is disabled > Check if ambari db (sql azure) schema has been set up ... > Ambari db (sql azure) schema needs to be set up ... > , error=com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near ';'. > at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(SQLServerException.java:215) > at com.microsoft.sqlserver.jdbc.SQLServerStatement.getNextResult(SQLServerStatement.java:1635) > at com.microsoft.sqlserver.jdbc.SQLServerStatement.doExecuteStatement(SQLServerStatement.java:865) > at com.microsoft.sqlserver.jdbc.SQLServerStatement$StmtExecCmd.doExecute(SQLServerStatement.java:762) > at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:5846) > at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:1719) > at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeCommand(SQLServerStatement.java:184) > at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeStatement(SQLServerStatement.java:159) > at com.microsoft.sqlserver.jdbc.SQLServerStatement.execute(SQLServerStatement.java:735) > at com.microsoft.SetupAmbariDb.executeQuery(Unknown Source) > at com.microsoft.SetupAmbariDb.setupAmbariTables(Unknown Source) > at com.microsoft.SetupAmbariDb.setup(Unknown Source) > at com.microsoft.SetupAmbariDb.main(Unknown Source) > Failed to setup Ambari Db > com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near ';'. > at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(SQLServerException.java:215) > at com.microsoft.sqlserver.jdbc.SQLServerStatement.getNextResult(SQLServerStatement.java:1635) > at com.microsoft.sqlserver.jdbc.SQLServerStatement.doExecuteStatement(SQLServerStatement.java:865) > at com.microsoft.sqlserver.jdbc.SQLServerStatement$StmtExecCmd.doExecute(SQLServerStatement.java:762) > at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:5846) > at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:1719) > at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeCommand(SQLServerStatement.java:184) > at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeStatement(SQLServerStatement.java:159) > at com.microsoft.sqlserver.jdbc.SQLServerStatement.execute(SQLServerStatement.java:735) > at com.microsoft.SetupAmbariDb.executeQuery(Unknown Source) > at com.microsoft.SetupAmbariDb.setupAmbariTables(Unknown Source) > at com.microsoft.SetupAmbariDb.setup(Unknown Source) > at com.microsoft.SetupAmbariDb.main(Unknown Source) > {code} > Missing a ")" before the ";" > {code} > CREATE TABLE extensionlink( > link_id BIGINT NOT NULL, > stack_id BIGINT NOT NULL, > extension_id BIGINT NOT NULL, > CONSTRAINT PK_extensionlink PRIMARY KEY CLUSTERED (link_id), > CONSTRAINT FK_extensionlink_stack_id FOREIGN KEY (stack_id) REFERENCES stack(stack_id), > CONSTRAINT FK_extensionlink_extension_id FOREIGN KEY (extension_id) REFERENCES extension(extension_id), > CONSTRAINT UQ_extension_link UNIQUE (stack_id, extension_id); > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)