Repository: ambari Updated Branches: refs/heads/branch-2.1.2 f17c42781 -> e8594069a
Revert "AMBARI-13599. Pig View - Service "storage" check Failed - Internal Exception: java.sql.SQLSyntaxErrorException: ORA-00972: identifier is too long. (Pankaj Singh via yusaku)" This reverts commit 2f87dcbf0dcbe6af7a786d04ee1dbb8963319f57. Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/45bc369e Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/45bc369e Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/45bc369e Branch: refs/heads/branch-2.1.2 Commit: 45bc369ea1e05a32e77c59bb22f6de5f511e6640 Parents: f17c427 Author: Jayush Luniya <[email protected]> Authored: Thu Oct 29 17:25:02 2015 -0700 Committer: Jayush Luniya <[email protected]> Committed: Thu Oct 29 17:25:02 2015 -0700 ---------------------------------------------------------------------- .../view/pig/persistence/DataStoreStorage.java | 24 ++++++++++++++++++++ contrib/views/pig/src/main/resources/view.xml | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/45bc369e/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 7ae7721..d89e7a6 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,14 +18,17 @@ 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; @@ -35,6 +38,7 @@ 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; /** @@ -147,4 +151,24 @@ 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/45bc369e/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 636e26e..5cca9bd 100644 --- a/contrib/views/pig/src/main/resources/view.xml +++ b/contrib/views/pig/src/main/resources/view.xml @@ -198,7 +198,7 @@ <persistence> <entity> - <class>org.apache.ambari.view.pig.persistence.SmokeTestEntity</class> + <class>org.apache.ambari.view.pig.persistence.DataStoreStorage$SmokeTestEntity</class> <id-property>id</id-property> </entity> <entity>
