ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yus...@apache.org
Subject 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 yusaku)
Date Thu, 29 Oct 2015 19:07:57 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.1.2 256c48277 -> 2f87dcbf0


AMBARI-13599. Pig View - Service "storage" check Failed - Internal Exception: java.sql.SQLSyntaxErrorException:
ORA-00972: identifier is too long. (Pankaj Singh via yusaku)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/2f87dcbf
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/2f87dcbf
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/2f87dcbf

Branch: refs/heads/branch-2.1.2
Commit: 2f87dcbf0dcbe6af7a786d04ee1dbb8963319f57
Parents: 256c482
Author: Yusaku Sako <yusaku@hortonworks.com>
Authored: Thu Oct 29 12:06:26 2015 -0700
Committer: Yusaku Sako <yusaku@hortonworks.com>
Committed: Thu Oct 29 12:07:50 2015 -0700

----------------------------------------------------------------------
 .../view/pig/persistence/DataStoreStorage.java  | 24 --------------------
 contrib/views/pig/src/main/resources/view.xml   |  2 +-
 2 files changed, 1 insertion(+), 25 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/2f87dcbf/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/2f87dcbf/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 @@
 
     <persistence>
         <entity>
-            <class>org.apache.ambari.view.pig.persistence.DataStoreStorage$SmokeTestEntity</class>
+            <class>org.apache.ambari.view.pig.persistence.SmokeTestEntity</class>
             <id-property>id</id-property>
         </entity>
         <entity>


Mime
View raw message