You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by za...@apache.org on 2022/03/31 11:03:12 UTC

[hive] branch master updated (4d49169 -> d22864f)

This is an automated email from the ASF dual-hosted git repository.

zabetak pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git.


    from 4d49169  HIVE-26080: Upgrade accumulo-core to 1.10.1 (Ashish Sharma, reviewed by Adesh Rao)
     new 2ac9b5f  HIVE-26068: Add README with build instructions to the src tarball (Stamatis Zampetakis, reviewed by Peter Vary)
     new d22864f  HIVE-26067: Remove unused core directory and duplicate DerbyPolicy class (Stamatis Zampetakis, reviewed by Peter Vary)

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 README.md                                          |  3 +
 .../java/org/apache/hive/hcatalog/DerbyPolicy.java | 90 ----------------------
 packaging/src/main/assembly/src.xml                |  2 +-
 3 files changed, 4 insertions(+), 91 deletions(-)
 delete mode 100644 core/src/test/java/org/apache/hive/hcatalog/DerbyPolicy.java

[hive] 01/02: HIVE-26068: Add README with build instructions to the src tarball (Stamatis Zampetakis, reviewed by Peter Vary)

Posted by za...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

zabetak pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git

commit 2ac9b5f09000cdf041043659ba5623a4bd653a85
Author: Stamatis Zampetakis <za...@gmail.com>
AuthorDate: Thu Mar 24 11:38:02 2022 +0100

    HIVE-26068: Add README with build instructions to the src tarball (Stamatis Zampetakis, reviewed by Peter Vary)
    
    Closes #3136
---
 README.md                           | 3 +++
 packaging/src/main/assembly/src.xml | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index fe5c456..53a2115 100644
--- a/README.md
+++ b/README.md
@@ -65,6 +65,9 @@ Getting Started
 - Installation Instructions and a quick tutorial:
   https://cwiki.apache.org/confluence/display/Hive/GettingStarted
 
+- Instructions to build Hive from source:
+  https://cwiki.apache.org/confluence/display/Hive/GettingStarted#GettingStarted-BuildingHivefromSource
+
 - A longer tutorial that covers more features of HiveQL:
   https://cwiki.apache.org/confluence/display/Hive/Tutorial
 
diff --git a/packaging/src/main/assembly/src.xml b/packaging/src/main/assembly/src.xml
index d300816..9acb6b5 100644
--- a/packaging/src/main/assembly/src.xml
+++ b/packaging/src/main/assembly/src.xml
@@ -56,7 +56,7 @@
         <include>.gitignore</include>
         <include>.reviewboardrc</include>
         <include>DEVNOTES</include>
-        <include>README.txt</include>
+        <include>README*</include>
         <include>LICENSE</include>
         <include>NOTICE</include>
         <include>CHANGELOG</include>

[hive] 02/02: HIVE-26067: Remove unused core directory and duplicate DerbyPolicy class (Stamatis Zampetakis, reviewed by Peter Vary)

Posted by za...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

zabetak pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git

commit d22864ff734699c65404c80d7b67b102dbe3e873
Author: Stamatis Zampetakis <za...@gmail.com>
AuthorDate: Thu Mar 24 11:01:31 2022 +0100

    HIVE-26067: Remove unused core directory and duplicate DerbyPolicy class (Stamatis Zampetakis, reviewed by Peter Vary)
    
    There is another identical copy of DerbyPolicy.java inside the hcatalog
    module.
    
    Closes #3135
---
 .../java/org/apache/hive/hcatalog/DerbyPolicy.java | 90 ----------------------
 1 file changed, 90 deletions(-)

diff --git a/core/src/test/java/org/apache/hive/hcatalog/DerbyPolicy.java b/core/src/test/java/org/apache/hive/hcatalog/DerbyPolicy.java
deleted file mode 100644
index cecf6dc..0000000
--- a/core/src/test/java/org/apache/hive/hcatalog/DerbyPolicy.java
+++ /dev/null
@@ -1,90 +0,0 @@
-/*
- * 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.hive.hcatalog;
-
-import org.apache.derby.security.SystemPermission;
-
-import java.security.CodeSource;
-import java.security.Permission;
-import java.security.PermissionCollection;
-import java.security.Policy;
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.Enumeration;
-import java.util.Iterator;
-
-/**
- * A security policy that grants usederbyinternals
- *
- * <p>
- *   HCatalog tests use Security Manager to handle exits.  With Derby version 10.14.1, if a
- *   security manager is configured, embedded Derby requires usederbyinternals permission, and
- *   that is checked directly using AccessController.checkPermission.  This class will be used to
- *   setup a security policy to grant usederbyinternals, in tests that use NoExitSecurityManager.
- * </p>
- */
-public class DerbyPolicy extends Policy {
-
-  private static PermissionCollection perms;
-
-  public DerbyPolicy() {
-    super();
-    if (perms == null) {
-      perms = new DerbyPermissionCollection();
-      addPermissions();
-    }
-  }
-
-  @Override
-  public PermissionCollection getPermissions(CodeSource codesource) {
-    return perms;
-  }
-
-  private void addPermissions() {
-    SystemPermission systemPermission = new SystemPermission("engine", "usederbyinternals");
-    perms.add(systemPermission);
-  }
-
-  class DerbyPermissionCollection extends PermissionCollection {
-
-    ArrayList<Permission> perms = new ArrayList<Permission>();
-
-    public void add(Permission p) {
-      perms.add(p);
-    }
-
-    public boolean implies(Permission p) {
-      for (Iterator<Permission> i = perms.iterator(); i.hasNext();) {
-        if (((Permission) i.next()).implies(p)) {
-          return true;
-        }
-      }
-      return false;
-    }
-
-    public Enumeration<Permission> elements() {
-      return Collections.enumeration(perms);
-    }
-
-    public boolean isReadOnly() {
-      return false;
-    }
-  }
-}
-