Skip to content

Commit

Permalink
DRILL-8144: Cannot launch Drill 1.20 RC 4 on Windows (#2470)
Browse files Browse the repository at this point in the history
  • Loading branch information
jnturton authored Feb 22, 2022
1 parent acac986 commit f4e07d2
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 43 deletions.
4 changes: 2 additions & 2 deletions distribution/src/main/resources/sqlline.bat
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,11 @@ if errorlevel 1 (
rem allow reflective access on Java 9+
set DRILL_SHELL_JAVA_OPTS=!DRILL_SHELL_JAVA_OPTS! ^
--add-opens java.base/java.lang=ALL-UNNAMED ^
--add-opens=java.base/java.util=ALL-UNNAMED ^
--add-opens java.base/java.util=ALL-UNNAMED ^
--add-opens java.base/sun.nio.ch=ALL-UNNAMED ^
--add-opens java.base/java.net=ALL-UNNAMED ^
--add-opens java.base/java.nio=ALL-UNNAMED ^
--add-opens java.security.jgss/sun.security.krb5=ALL-UNNAMED ^
--add-opens java.security.jgss/sun.security.krb5=ALL-UNNAMED
)

set SQLLINE_CALL=sqlline.SqlLine -ac org.apache.drill.exec.client.DrillSqlLineApplication
Expand Down
Binary file modified distribution/src/main/resources/winutils/hadoop.dll
Binary file not shown.
Binary file modified distribution/src/main/resources/winutils/winutils.exe
Binary file not shown.
4 changes: 2 additions & 2 deletions docs/dev/HadoopWinutils.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
Hadoop Winutils native libraries are required to run Drill on Windows. The last version present in maven repository is 2.7.1 and is not updated anymore.
That's why Winutils version matching Hadoop version used in Drill is located in distribution/src/main/resources.

Current Winutils version: *3.2.1.*
Current Winutils version: *3.2.2.*

## References
- Official wiki: [Windows Problems](https://cwiki.apache.org/confluence/display/HADOOP2/WindowsProblems).
- Winutils compiling process is described [here](https://github.com/steveloughran/winutils).
- Actual versions are being uploaded [here](https://github.com/cdarlint/winutils)
- Actual versions are being uploaded [here](https://github.com/cdarlint/winutils)
42 changes: 8 additions & 34 deletions exec/java-exec/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,14 @@
<version>${testcontainers.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.github.rdblue</groupId>
<artifactId>brotli-codec</artifactId>
<version>0.1.1</version>
<!-- brotli-codec bundles natives for linux and darwin, amd64 only so
we don't ship it so as not to break startup on windows or arm -->
<scope>provided</scope>
</dependency>
</dependencies>

<profiles>
Expand Down Expand Up @@ -761,40 +769,6 @@
</dependency>
</dependencies>
</profile>
<profile>
<!-- Only package a Brotli codec for Linux and Mac OS X on AMD64, see PARQUET-1975 -->
<id>non-win-amd64</id>
<activation>
<os>
<arch>amd64</arch>
<name>!Windows</name>
</os>
</activation>
<dependencies>
<dependency>
<groupId>com.github.rdblue</groupId>
<artifactId>brotli-codec</artifactId>
<version>${brotli-codec.version}</version>
</dependency>
</dependencies>
</profile>
<profile>
<!-- A duplicate of the profile above to handle os.arch=x86_64 reported on Macs -->
<id>non-win-x86_64</id>
<activation>
<os>
<arch>x86_64</arch>
<name>!Windows</name>
</os>
</activation>
<dependencies>
<dependency>
<groupId>com.github.rdblue</groupId>
<artifactId>brotli-codec</artifactId>
<version>${brotli-codec.version}</version>
</dependency>
</dependencies>
</profile>
</profiles>

<build>
Expand Down
4 changes: 0 additions & 4 deletions exec/jdbc-all/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,6 @@
<groupId>io.airlift</groupId>
<artifactId>aircompresssor</artifactId>
</exclusion>
<exclusion>
<groupId>com.github.rdblue</groupId>
<artifactId>brotli-codec</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
Expand Down
1 change: 0 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@
<commons.beanutils.version>1.9.4</commons.beanutils.version>
<httpdlog-parser.version>5.7</httpdlog-parser.version>
<yauaa.version>5.20</yauaa.version>
<brotli-codec.version>0.1.1</brotli-codec.version>
<aircompressor.version>0.20</aircompressor.version>
<iceberg.version>0.12.1</iceberg.version>
<univocity-parsers.version>2.8.3</univocity-parsers.version>
Expand Down

0 comments on commit f4e07d2

Please sign in to comment.