Skip to content

Commit

Permalink
Merge pull request #4 from apache/trunk
Browse files Browse the repository at this point in the history
sync
  • Loading branch information
GuoPhilipse committed Apr 21, 2021
2 parents d4f968b + 5221322 commit d522abf
Show file tree
Hide file tree
Showing 119 changed files with 4,027 additions and 1,299 deletions.
16 changes: 8 additions & 8 deletions BUILDING.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,13 @@ Known issues:
and run your IDE and Docker etc inside that VM.

----------------------------------------------------------------------------------
Installing required packages for clean install of Ubuntu 14.04 LTS Desktop:
Installing required packages for clean install of Ubuntu 18.04 LTS Desktop.
(For Ubuntu 20.04, gcc/g++ and cmake bundled with Ubuntu can be used.
Refer to dev-support/docker/Dockerfile):

* Oracle JDK 1.8 (preferred)
$ sudo apt-get purge openjdk*
$ sudo apt-get install software-properties-common
$ sudo add-apt-repository ppa:webupd8team/java
* Open JDK 1.8
$ sudo apt-get update
$ sudo apt-get install oracle-java8-installer
$ sudo apt-get -y install java-8-openjdk
* Maven
$ sudo apt-get -y install maven
* Native libraries
Expand Down Expand Up @@ -86,12 +85,13 @@ Installing required packages for clean install of Ubuntu 14.04 LTS Desktop:
$ curl -L https://sourceforge.net/projects/boost/files/boost/1.72.0/boost_1_72_0.tar.bz2/download > boost_1_72_0.tar.bz2
$ tar --bzip2 -xf boost_1_72_0.tar.bz2 && cd boost_1_72_0
$ ./bootstrap.sh --prefix=/usr/
$ ./b2 --without-python install
$ ./b2 --without-python
$ sudo ./b2 --without-python install

Optional packages:

* Snappy compression (only used for hadoop-mapreduce-client-nativetask)
$ sudo apt-get install snappy libsnappy-dev
$ sudo apt-get install libsnappy-dev
* Intel ISA-L library for erasure coding
Please refer to https://01.org/intel%C2%AE-storage-acceleration-library-open-source-version
(OR https://github.com/01org/isa-l)
Expand Down
4 changes: 2 additions & 2 deletions LICENSE-binary
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ com.google.guava:guava:20.0
com.google.guava:guava:27.0-jre
com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava
com.microsoft.azure:azure-storage:7.0.0
com.nimbusds:nimbus-jose-jwt:4.41.1
com.nimbusds:nimbus-jose-jwt:9.8.1
com.squareup.okhttp:okhttp:2.7.5
com.squareup.okio:okio:1.6.0
com.zaxxer:HikariCP-java7:2.4.12
Expand Down Expand Up @@ -283,7 +283,7 @@ javax.inject:javax.inject:1
log4j:log4j:1.2.17
net.java.dev.jna:jna:5.2.0
net.minidev:accessors-smart:1.2
net.minidev:json-smart:2.3
net.minidev:json-smart:2.4.2
org.apache.avro:avro:1.7.7
org.apache.commons:commons-collections4:4.2
org.apache.commons:commons-compress:1.19
Expand Down
2 changes: 1 addition & 1 deletion dev-support/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pipeline {
DOCKERFILE = "${SOURCEDIR}/dev-support/docker/Dockerfile"
YETUS='yetus'
// Branch or tag name. Yetus release tags are 'rel/X.Y.Z'
YETUS_VERSION='11eb9b09786e401fbdeaa3be83a19a4066fd7813'
YETUS_VERSION='f9ba0170a5787a5f4662d3769804fef0226a182f'
}

parameters {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,6 @@ allowed_expr+="|^org.apache.hadoop.application-classloader.properties$"
allowed_expr+="|^java.policy$"
# * Used by javax.annotation
allowed_expr+="|^jndi.properties$"
# * allowing native libraries from rocksdb. Leaving native libraries as it is.
allowed_expr+="|^librocksdbjni-linux32.so"
allowed_expr+="|^librocksdbjni-linux64.so"
allowed_expr+="|^librocksdbjni-osx.jnilib"
allowed_expr+="|^librocksdbjni-win64.dll"
allowed_expr+="|^librocksdbjni-linux-ppc64le.so"


allowed_expr+=")"
declare -i bad_artifacts=0
Expand Down
7 changes: 0 additions & 7 deletions hadoop-client-modules/hadoop-client-minicluster/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -760,13 +760,6 @@
<exclude>xml.xsd</exclude>
</excludes>
</filter>
<!-- filtering HISTORY-JAVA.md from rocksdb jar -->
<filter>
<artifact>org.rocksdb:rocksdbjni</artifact>
<excludes>
<exclude>HISTORY-JAVA.md</exclude>
</excludes>
</filter>
<filter>
<!-- skip jetty license info already incorporated into LICENSE/NOTICE -->
<artifact>org.eclipse.jetty:*</artifact>
Expand Down
6 changes: 1 addition & 5 deletions hadoop-common-project/hadoop-auth/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,7 @@
<artifactId>guava</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-server</artifactId>
</dependency>
</dependencies>
</dependencies>

<build>
<plugins>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import org.apache.hadoop.security.authentication.client.AuthenticationException;
import org.apache.hadoop.security.authentication.client.KerberosAuthenticator;
import org.apache.hadoop.security.authentication.util.*;
import org.eclipse.jetty.server.Response;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down Expand Up @@ -621,18 +620,15 @@ && getMaxInactiveInterval() > 0) {
errCode = HttpServletResponse.SC_FORBIDDEN;
}
// After Jetty 9.4.21, sendError() no longer allows a custom message.
// use setStatusWithReason() to set a custom message.
// use setStatus() to set a custom message.
String reason;
if (authenticationEx == null) {
reason = "Authentication required";
} else {
reason = authenticationEx.getMessage();
}

if (httpResponse instanceof Response) {
((Response)httpResponse).setStatusWithReason(errCode, reason);
}

httpResponse.setStatus(errCode, reason);
httpResponse.sendError(errCode, reason);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ hadoop.log.dir=.
hadoop.log.file=hadoop.log

# Define the root logger to the system property "hadoop.root.logger".
log4j.rootLogger=${hadoop.root.logger}, EventCounter
log4j.rootLogger=${hadoop.root.logger}

# Logging Threshold
log4j.threshold=ALL
Expand Down Expand Up @@ -176,12 +176,6 @@ log4j.appender.DNMETRICSRFA.MaxFileSize=64MB
log4j.logger.com.amazonaws.http.AmazonHttpClient=ERROR
#log4j.logger.org.apache.hadoop.fs.s3a.S3AFileSystem=WARN

#
# Event Counter Appender
# Sends counts of logging messages at different severity levels to Hadoop Metrics.
#
log4j.appender.EventCounter=org.apache.hadoop.log.metrics.EventCounter


#
# shuffle connection log from shuffleHandler
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import org.apache.hadoop.metrics2.MetricsInfo;
import org.apache.hadoop.metrics2.MetricsRecordBuilder;

import java.util.concurrent.atomic.AtomicLong;
import java.util.concurrent.atomic.LongAdder;

/**
* A mutable long counter
Expand All @@ -32,11 +32,11 @@
@InterfaceStability.Evolving
public class MutableCounterLong extends MutableCounter {

private AtomicLong value = new AtomicLong();
private final LongAdder value = new LongAdder();

public MutableCounterLong(MetricsInfo info, long initValue) {
super(info);
this.value.set(initValue);
this.value.add(initValue);
}

@Override
Expand All @@ -49,12 +49,12 @@ public void incr() {
* @param delta of the increment
*/
public void incr(long delta) {
value.addAndGet(delta);
value.add(delta);
setChanged();
}

public long value() {
return value.get();
return value.longValue();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.CommonConfigurationKeys;
import org.apache.hadoop.log.metrics.EventCounter;
import org.apache.hadoop.metrics2.MetricsCollector;
import org.apache.hadoop.metrics2.MetricsInfo;
import org.apache.hadoop.metrics2.MetricsRecordBuilder;
Expand Down Expand Up @@ -154,7 +153,6 @@ public void getMetrics(MetricsCollector collector, boolean all) {
} else {
getThreadUsageFromGroup(rb);
}
getEventCounters(rb);
}

private void getMemoryUsage(MetricsRecordBuilder rb) {
Expand Down Expand Up @@ -284,10 +282,4 @@ private void getThreadUsageFromGroup(MetricsRecordBuilder rb) {
.addGauge(ThreadsTerminated, threadsTerminated);
}

private void getEventCounters(MetricsRecordBuilder rb) {
rb.addCounter(LogFatal, EventCounter.getFatal())
.addCounter(LogError, EventCounter.getError())
.addCounter(LogWarn, EventCounter.getWarn())
.addCounter(LogInfo, EventCounter.getInfo());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
import org.apache.hadoop.classification.InterfaceStability;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.net.NetUtils;
import org.apache.log4j.LogManager;

import org.apache.hadoop.thirdparty.com.google.common.base.Preconditions;
import org.apache.hadoop.thirdparty.com.google.common.net.InetAddresses;
Expand Down Expand Up @@ -752,6 +753,7 @@ static void startupShutdownMessage(Class<?> clazz, String[] args,
public void run() {
LOG.info(toStartupShutdownString("SHUTDOWN_MSG: ", new String[]{
"Shutting down " + classname + " at " + hostname}));
LogManager.shutdown();
}
}, SHUTDOWN_HOOK_PRIORITY);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ jthrowable newIOException(JNIEnv* env, const char *fmt, ...)
const char* terror(int errnum)
{

#if defined(__sun)
// MT-Safe under Solaris which doesn't support sys_errlist/sys_nerr
#if defined(__sun) || defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 32)
// MT-Safe under Solaris or glibc >= 2.32 not supporting sys_errlist/sys_nerr
return strerror(errnum);
#else
if ((errnum < 0) || (errnum >= sys_nerr)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ public void testNonPrintableCharacters() throws Exception {
"x\uDB80\uDC00y\uDBFF\uDFFDz\u1050", "x?y?z\u1050");

// Unassigned Unicode
expect("Should replace unassigned U+30000 and U+DFFFF",
"-\uD880\uDC00-\uDB3F\uDFFF-", "-?-?-");
expect("Should replace unassigned U+DFFFF",
"-\uDB3F\uDFFF-", "-?-");

// Standalone surrogate character (not in a pair)
expect("Should replace standalone surrogate U+DB80", "x\uDB80yz", "x?yz");
Expand Down

0 comments on commit d522abf

Please sign in to comment.