Sat Oct 19 00:29:48 CUT 2024
cd /c/hadoop/hadoop-tools/hadoop-archive-logs
mvn --batch-mode -Ptest-patch -Pdist -Dtar -Pnative-win -Dhttps.protocols=TLSv1.2 -Drequire.openssl -Drequire.test.libhadoop -Dshell-executable=/c/Git/bin/bash.exe -Dopenssl.prefix=/c/vcpkg/installed/x64-windows -Dcmake.prefix.path=/c/vcpkg/installed/x64-windows -Dwindows.cmake.toolchain.file=/c/vcpkg/scripts/buildsystems/vcpkg.cmake -Dwindows.cmake.build.type=RelWithDebInfo -Dwindows.build.hdfspp.dll=off -Dwindows.no.sasl=on -Duse.platformToolsetVersion=v142 -Dsurefire.rerunFailingTestsCount=2 -Pparallel-tests -Pshelltest -Drequire.test.libhadoop -Drequire.snappy -Pdist -Dtar -Pnative-win -Dhttps.protocols=TLSv1.2 -Drequire.openssl -Drequire.test.libhadoop -Dshell-executable=/c/Git/bin/bash.exe -Dopenssl.prefix=/c/vcpkg/installed/x64-windows -Dcmake.prefix.path=/c/vcpkg/installed/x64-windows -Dwindows.cmake.toolchain.file=/c/vcpkg/scripts/buildsystems/vcpkg.cmake -Dwindows.cmake.build.type=RelWithDebInfo -Dwindows.build.hdfspp.dll=off -Dwindows.no.sasl=on -Duse.platformToolsetVersion=v142 clean test -fae
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Detecting the operating system and CPU architecture
[INFO] ------------------------------------------------------------------------
[INFO] os.detected.name: windows
[INFO] os.detected.arch: x86_64
[INFO] os.detected.bitness: 64
[INFO] os.detected.version: 10.0
[INFO] os.detected.version.major: 10
[INFO] os.detected.version.minor: 0
[INFO] os.detected.classifier: windows-x86_64
[WARNING] The requested profile "parallel-tests" could not be activated because it does not exist.
[WARNING] The requested profile "shelltest" could not be activated because it does not exist.
[INFO] 
[INFO] ---------------< org.apache.hadoop:hadoop-archive-logs >----------------
[INFO] Building Apache Hadoop Archive Logs 3.5.0-SNAPSHOT
[INFO]   from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] Downloading from apache.snapshots.https: https://repository.apache.org/content/repositories/snapshots/org/apache/hadoop/hadoop-yarn-applications-distributedshell/3.5.0-SNAPSHOT/maven-metadata.xml
[INFO] Downloaded from apache.snapshots.https: https://repository.apache.org/content/repositories/snapshots/org/apache/hadoop/hadoop-yarn-applications-distributedshell/3.5.0-SNAPSHOT/maven-metadata.xml (814 B at 744 B/s)
[INFO] Downloading from apache.snapshots.https: https://repository.apache.org/content/repositories/snapshots/org/apache/hadoop/hadoop-yarn-applications-distributedshell/3.5.0-SNAPSHOT/hadoop-yarn-applications-distributedshell-3.5.0-20241018.095259-306.pom
[INFO] Downloaded from apache.snapshots.https: https://repository.apache.org/content/repositories/snapshots/org/apache/hadoop/hadoop-yarn-applications-distributedshell/3.5.0-SNAPSHOT/hadoop-yarn-applications-distributedshell-3.5.0-20241018.095259-306.pom (7.0 kB at 23 kB/s)
[INFO] Downloading from apache.snapshots.https: https://repository.apache.org/content/repositories/snapshots/org/apache/hadoop/hadoop-yarn-applications/3.5.0-SNAPSHOT/maven-metadata.xml
[INFO] Downloaded from apache.snapshots.https: https://repository.apache.org/content/repositories/snapshots/org/apache/hadoop/hadoop-yarn-applications/3.5.0-SNAPSHOT/maven-metadata.xml (622 B at 2.3 kB/s)
[INFO] Downloading from apache.snapshots.https: https://repository.apache.org/content/repositories/snapshots/org/apache/hadoop/hadoop-yarn-server-timeline-pluginstorage/3.5.0-SNAPSHOT/maven-metadata.xml
[INFO] Downloaded from apache.snapshots.https: https://repository.apache.org/content/repositories/snapshots/org/apache/hadoop/hadoop-yarn-server-timeline-pluginstorage/3.5.0-SNAPSHOT/maven-metadata.xml (1.0 kB at 3.8 kB/s)
[INFO] Downloading from apache.snapshots.https: https://repository.apache.org/content/repositories/snapshots/org/apache/hadoop/hadoop-archives/3.5.0-SNAPSHOT/maven-metadata.xml
[INFO] Downloaded from apache.snapshots.https: https://repository.apache.org/content/repositories/snapshots/org/apache/hadoop/hadoop-archives/3.5.0-SNAPSHOT/maven-metadata.xml (788 B at 332 B/s)
[INFO] Downloading from apache.snapshots.https: https://repository.apache.org/content/repositories/snapshots/org/apache/hadoop/hadoop-archives/3.5.0-SNAPSHOT/hadoop-archives-3.5.0-20241018.095259-306.pom
[INFO] Downloaded from apache.snapshots.https: https://repository.apache.org/content/repositories/snapshots/org/apache/hadoop/hadoop-archives/3.5.0-SNAPSHOT/hadoop-archives-3.5.0-20241018.095259-306.pom (5.1 kB at 8.9 kB/s)
[INFO] Downloading from apache.snapshots.https: https://repository.apache.org/content/repositories/snapshots/org/apache/hadoop/hadoop-yarn-applications-distributedshell/3.5.0-SNAPSHOT/hadoop-yarn-applications-distributedshell-3.5.0-20241018.095259-306.jar
[INFO] Downloading from apache.snapshots.https: https://repository.apache.org/content/repositories/snapshots/org/apache/hadoop/hadoop-archives/3.5.0-SNAPSHOT/hadoop-archives-3.5.0-20241018.095259-306.jar
[INFO] Downloaded from apache.snapshots.https: https://repository.apache.org/content/repositories/snapshots/org/apache/hadoop/hadoop-yarn-applications-distributedshell/3.5.0-SNAPSHOT/hadoop-yarn-applications-distributedshell-3.5.0-20241018.095259-306.jar (82 kB at 123 kB/s)
[INFO] Downloaded from apache.snapshots.https: https://repository.apache.org/content/repositories/snapshots/org/apache/hadoop/hadoop-archives/3.5.0-SNAPSHOT/hadoop-archives-3.5.0-20241018.095259-306.jar (29 kB at 35 kB/s)
[INFO] 
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ hadoop-archive-logs ---
[INFO] Deleting C:\hadoop\hadoop-tools\hadoop-archive-logs\target
[INFO] Deleting C:\hadoop\hadoop-tools\hadoop-archive-logs (includes = [dependency-reduced-pom.xml], excludes = [])
[INFO] 
[INFO] --- maven-antrun-plugin:1.7:run (create-testdirs) @ hadoop-archive-logs ---
[INFO] Executing tasks

main:
    [mkdir] Created dir: C:\hadoop\hadoop-tools\hadoop-archive-logs\target\test-dir
[INFO] Executed tasks
[INFO] 
[INFO] --- replacer:1.5.3:replace (replace-generated-sources) @ hadoop-archive-logs ---
[INFO] Skipping
[INFO] 
[INFO] --- replacer:1.5.3:replace (replace-sources) @ hadoop-archive-logs ---
[INFO] Skipping
[INFO] 
[INFO] --- maven-enforcer-plugin:3.5.0:enforce (banned-illegal-imports) @ hadoop-archive-logs ---
[INFO] Rule 0: org.apache.maven.plugins.enforcer.RestrictImports passed
[INFO] Rule 1: org.apache.maven.plugins.enforcer.RestrictImports passed
[INFO] Rule 2: org.apache.maven.plugins.enforcer.RestrictImports passed
[INFO] Rule 3: org.apache.maven.plugins.enforcer.RestrictImports passed
[INFO] Rule 4: org.apache.maven.plugins.enforcer.RestrictImports passed
[INFO] Rule 5: org.apache.maven.plugins.enforcer.RestrictImports passed
[INFO] Rule 6: org.apache.maven.plugins.enforcer.RestrictImports passed
[INFO] Rule 7: org.apache.maven.plugins.enforcer.RestrictImports passed
[INFO] Rule 8: org.apache.maven.plugins.enforcer.RestrictImports passed
[INFO] Rule 9: org.apache.maven.plugins.enforcer.RestrictImports passed
[INFO] Rule 10: org.apache.maven.plugins.enforcer.RestrictImports passed
[INFO] Rule 11: org.apache.maven.plugins.enforcer.RestrictImports passed
[INFO] Rule 12: org.apache.maven.plugins.enforcer.RestrictImports passed
[INFO] Rule 13: org.apache.maven.plugins.enforcer.RestrictImports passed
[INFO] Rule 14: org.apache.maven.plugins.enforcer.RestrictImports passed
[INFO] Rule 15: org.apache.maven.plugins.enforcer.RestrictImports passed
[INFO] Rule 16: org.apache.maven.enforcer.rules.version.RequireMavenVersion passed
[INFO] Rule 17: org.apache.maven.enforcer.rules.version.RequireJavaVersion passed
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ hadoop-archive-logs ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\hadoop\hadoop-tools\hadoop-archive-logs\src\main\resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.10.1:compile (default-compile) @ hadoop-archive-logs ---
[INFO] Compiling 2 source files to C:\hadoop\hadoop-tools\hadoop-archive-logs\target\classes
[WARNING] C:\hadoop\hadoop-tools\hadoop-archive-logs\src\main\java\org\apache\hadoop\tools\HadoopArchiveLogs.java:[24,29] [deprecation] GnuParser in org.apache.commons.cli has been deprecated
[WARNING] C:\hadoop\hadoop-tools\hadoop-archive-logs\src\main\java\org\apache\hadoop\tools\HadoopArchiveLogsRunner.java:[24,29] [deprecation] GnuParser in org.apache.commons.cli has been deprecated
[WARNING] C:\hadoop\hadoop-tools\hadoop-archive-logs\src\main\java\org\apache\hadoop\tools\HadoopArchiveLogs.java:[258,37] [deprecation] GnuParser in org.apache.commons.cli has been deprecated
[WARNING] C:\hadoop\hadoop-tools\hadoop-archive-logs\src\main\java\org\apache\hadoop\tools\HadoopArchiveLogsRunner.java:[214,35] [deprecation] GnuParser in org.apache.commons.cli has been deprecated
[INFO] 
[INFO] --- maven-dependency-plugin:3.0.2:list (deplist) @ hadoop-archive-logs ---
[INFO] 
[INFO] --- replacer:1.5.3:replace (replace-test-sources) @ hadoop-archive-logs ---
[INFO] Skipping
[INFO] 
[INFO] --- replacer:1.5.3:replace (replace-generated-test-sources) @ hadoop-archive-logs ---
[INFO] Skipping
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ hadoop-archive-logs ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\hadoop\hadoop-tools\hadoop-archive-logs\src\test\resources
[INFO] 
[INFO] --- maven-antrun-plugin:1.7:run (create-log-dir) @ hadoop-archive-logs ---
[INFO] Executing tasks

main:
   [delete] Deleting directory C:\hadoop\hadoop-tools\hadoop-archive-logs\target\test-dir
    [mkdir] Created dir: C:\hadoop\hadoop-tools\hadoop-archive-logs\target\test-dir
    [mkdir] Created dir: C:\hadoop\hadoop-tools\hadoop-archive-logs\target\log
[INFO] Executed tasks
[INFO] 
[INFO] --- maven-compiler-plugin:3.10.1:testCompile (default-testCompile) @ hadoop-archive-logs ---
[INFO] Compiling 2 source files to C:\hadoop\hadoop-tools\hadoop-archive-logs\target\test-classes
[WARNING] C:\hadoop\hadoop-tools\hadoop-archive-logs\src\test\java\org\apache\hadoop\tools\TestHadoopArchiveLogsRunner.java:[72,33] [deprecation] Timeout(int) in Timeout has been deprecated
[INFO] 
[INFO] --- maven-surefire-plugin:3.0.0-M1:test (default-test) @ hadoop-archive-logs ---
[INFO] 
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.apache.hadoop.tools.TestHadoopArchiveLogs
[ERROR] Tests run: 8, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 9.227 s <<< FAILURE! - in org.apache.hadoop.tools.TestHadoopArchiveLogs
[ERROR] testGenerateScript(org.apache.hadoop.tools.TestHadoopArchiveLogs)  Time elapsed: 0.054 s  <<< ERROR!
java.lang.IllegalStateException: Mismatched Charset(UTF-8) and CharsetEncoder(windows-1252)
	at org.apache.commons.io.output.FileWriterWithEncoding$Builder.get(FileWriterWithEncoding.java:113)
	at org.apache.hadoop.tools.HadoopArchiveLogs.generateScript(HadoopArchiveLogs.java:512)
	at org.apache.hadoop.tools.TestHadoopArchiveLogs._testGenerateScript(TestHadoopArchiveLogs.java:280)
	at org.apache.hadoop.tools.TestHadoopArchiveLogs.testGenerateScript(TestHadoopArchiveLogs.java:248)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:299)
	at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:293)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.lang.Thread.run(Thread.java:750)

[ERROR] testGenerateScript(org.apache.hadoop.tools.TestHadoopArchiveLogs)  Time elapsed: 0.018 s  <<< ERROR!
java.lang.IllegalStateException: Mismatched Charset(UTF-8) and CharsetEncoder(windows-1252)
	at org.apache.commons.io.output.FileWriterWithEncoding$Builder.get(FileWriterWithEncoding.java:113)
	at org.apache.hadoop.tools.HadoopArchiveLogs.generateScript(HadoopArchiveLogs.java:512)
	at org.apache.hadoop.tools.TestHadoopArchiveLogs._testGenerateScript(TestHadoopArchiveLogs.java:280)
	at org.apache.hadoop.tools.TestHadoopArchiveLogs.testGenerateScript(TestHadoopArchiveLogs.java:248)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:299)
	at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:293)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.lang.Thread.run(Thread.java:750)

[ERROR] testGenerateScript(org.apache.hadoop.tools.TestHadoopArchiveLogs)  Time elapsed: 0.018 s  <<< ERROR!
java.lang.IllegalStateException: Mismatched Charset(UTF-8) and CharsetEncoder(windows-1252)
	at org.apache.commons.io.output.FileWriterWithEncoding$Builder.get(FileWriterWithEncoding.java:113)
	at org.apache.hadoop.tools.HadoopArchiveLogs.generateScript(HadoopArchiveLogs.java:512)
	at org.apache.hadoop.tools.TestHadoopArchiveLogs._testGenerateScript(TestHadoopArchiveLogs.java:280)
	at org.apache.hadoop.tools.TestHadoopArchiveLogs.testGenerateScript(TestHadoopArchiveLogs.java:248)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:299)
	at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:293)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.lang.Thread.run(Thread.java:750)

[INFO] Running org.apache.hadoop.tools.TestHadoopArchiveLogsRunner
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 23.243 s - in org.apache.hadoop.tools.TestHadoopArchiveLogsRunner
[INFO] 
[INFO] Results:
[INFO] 
[ERROR] Errors: 
[ERROR] org.apache.hadoop.tools.TestHadoopArchiveLogs.testGenerateScript(org.apache.hadoop.tools.TestHadoopArchiveLogs)
[ERROR]   Run 1: TestHadoopArchiveLogs.testGenerateScript:248->_testGenerateScript:280 » IllegalState
[ERROR]   Run 2: TestHadoopArchiveLogs.testGenerateScript:248->_testGenerateScript:280 » IllegalState
[ERROR]   Run 3: TestHadoopArchiveLogs.testGenerateScript:248->_testGenerateScript:280 » IllegalState
[INFO] 
[INFO] 
[ERROR] Tests run: 8, Failures: 0, Errors: 1, Skipped: 0
[INFO] 
[ERROR] There are test failures.

Please refer to C:\hadoop\hadoop-tools\hadoop-archive-logs\target\surefire-reports for the individual test results.
Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  51.256 s
[INFO] Finished at: 2024-10-19T00:30:42Z
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "parallel-tests" could not be activated because it does not exist.
[WARNING] The requested profile "shelltest" could not be activated because it does not exist.
