Return-Path: X-Original-To: apmail-ambari-commits-archive@www.apache.org Delivered-To: apmail-ambari-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7253B175A7 for ; Fri, 30 Oct 2015 00:24:29 +0000 (UTC) Received: (qmail 26446 invoked by uid 500); 30 Oct 2015 00:24:29 -0000 Delivered-To: apmail-ambari-commits-archive@ambari.apache.org Received: (qmail 26409 invoked by uid 500); 30 Oct 2015 00:24:29 -0000 Mailing-List: contact commits-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@ambari.apache.org Delivered-To: mailing list commits@ambari.apache.org Received: (qmail 26400 invoked by uid 99); 30 Oct 2015 00:24:29 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Oct 2015 00:24:29 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 2D288E09C9; Fri, 30 Oct 2015 00:24:29 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: jluniya@apache.org To: commits@ambari.apache.org Date: Fri, 30 Oct 2015 00:24:30 -0000 Message-Id: <8f92495f0c56425db868404d3569e7cf@git.apache.org> In-Reply-To: <680ae57f0e7747e8b4d5d86c9fe71623@git.apache.org> References: <680ae57f0e7747e8b4d5d86c9fe71623@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [2/2] ambari git commit: AMBARI-13599. Pig View - Service storage check Failed - Internal Exception: java.sql.SQLSyntaxErrorException: ORA-00972: identifier is too long. (Pankaj Singh via jluniya) AMBARI-13599. Pig View - Service storage check Failed - Internal Exception: java.sql.SQLSyntaxErrorException: ORA-00972: identifier is too long. (Pankaj Singh via jluniya) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/7d0af009 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/7d0af009 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/7d0af009 Branch: refs/heads/branch-2.1 Commit: 7d0af00927f48b62ba7baadb165a5fb61dc33b51 Parents: 6748446 Author: Jayush Luniya Authored: Thu Oct 29 17:18:00 2015 -0700 Committer: Jayush Luniya Committed: Thu Oct 29 17:24:18 2015 -0700 ---------------------------------------------------------------------- .../view/pig/persistence/DataStoreStorage.java | 24 ----------- .../view/pig/persistence/SmokeTestEntity.java | 45 ++++++++++++++++++++ contrib/views/pig/src/main/resources/view.xml | 2 +- 3 files changed, 46 insertions(+), 25 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/7d0af009/contrib/views/pig/src/main/java/org/apache/ambari/view/pig/persistence/DataStoreStorage.java ---------------------------------------------------------------------- diff --git a/contrib/views/pig/src/main/java/org/apache/ambari/view/pig/persistence/DataStoreStorage.java b/contrib/views/pig/src/main/java/org/apache/ambari/view/pig/persistence/DataStoreStorage.java index d89e7a6..7ae7721 100644 --- a/contrib/views/pig/src/main/java/org/apache/ambari/view/pig/persistence/DataStoreStorage.java +++ b/contrib/views/pig/src/main/java/org/apache/ambari/view/pig/persistence/DataStoreStorage.java @@ -18,17 +18,14 @@ package org.apache.ambari.view.pig.persistence; -import com.google.gson.Gson; import org.apache.ambari.view.PersistenceException; import org.apache.ambari.view.ViewContext; import org.apache.ambari.view.pig.persistence.utils.*; import org.apache.ambari.view.pig.utils.ServiceFormattedException; -import org.apache.commons.configuration.Configuration; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.ws.rs.WebApplicationException; -import java.util.ArrayList; import java.util.LinkedList; import java.util.List; @@ -38,7 +35,6 @@ import java.util.List; public class DataStoreStorage implements Storage { private final static Logger LOG = LoggerFactory.getLogger(DataStoreStorage.class); - protected final Gson gson = new Gson(); protected ViewContext context; /** @@ -151,24 +147,4 @@ public class DataStoreStorage implements Storage { } } - public static class SmokeTestEntity implements Indexed { - private String id = null; - private String data = null; - - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public String getData() { - return data; - } - - public void setData(String data) { - this.data = data; - } - } } http://git-wip-us.apache.org/repos/asf/ambari/blob/7d0af009/contrib/views/pig/src/main/java/org/apache/ambari/view/pig/persistence/SmokeTestEntity.java ---------------------------------------------------------------------- diff --git a/contrib/views/pig/src/main/java/org/apache/ambari/view/pig/persistence/SmokeTestEntity.java b/contrib/views/pig/src/main/java/org/apache/ambari/view/pig/persistence/SmokeTestEntity.java new file mode 100644 index 0000000..ec7e34b --- /dev/null +++ b/contrib/views/pig/src/main/java/org/apache/ambari/view/pig/persistence/SmokeTestEntity.java @@ -0,0 +1,45 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.ambari.view.pig.persistence; + +import org.apache.ambari.view.pig.persistence.utils.Indexed; + +/** + * DataStore entity to test whether DS interface works correctly. + */ +public class SmokeTestEntity implements Indexed { + private String id = null; + private String data = null; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } +} http://git-wip-us.apache.org/repos/asf/ambari/blob/7d0af009/contrib/views/pig/src/main/resources/view.xml ---------------------------------------------------------------------- diff --git a/contrib/views/pig/src/main/resources/view.xml b/contrib/views/pig/src/main/resources/view.xml index 5cca9bd..636e26e 100644 --- a/contrib/views/pig/src/main/resources/view.xml +++ b/contrib/views/pig/src/main/resources/view.xml @@ -198,7 +198,7 @@ - org.apache.ambari.view.pig.persistence.DataStoreStorage$SmokeTestEntity + org.apache.ambari.view.pig.persistence.SmokeTestEntity id