I installed parquet-tools
to check parquet, but I think that it doesn't work because a version higher than java8 is included in the current environment, so I installed java8 and made it usable.
What kind of installation should I get an error for the time being?
% brew install parquet-tools
% parquet-tools meta file path
java.lang.ExceptionInInitializerError
If you google lightly, it will not work unless it is java8
% java -version
openjdk version "14" 2020-03-17
OpenJDK Runtime Environment (build 14+36-1461)
OpenJDK 64-Bit Server VM (build 14+36-1461, mixed mode, sharing)
Let's install java8 and switch the java version at runtime
% brew tap homebrew/cask-versions
% brew cask install adoptopenjdk8
% /usr/libexec/java_home -v "1.8"
/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home
% export JAVA_HOME=`/usr/libexec/java_home -v "1.8"`
% PATH=${JAVA_HOME}/bin:${PATH}
% parquet-tools meta file path
file: file:File Path
creator: parquet-mr
file schema: hive_schema
--------------------------------------------------------------------------------
hoge: OPTIONAL BINARY O:UTF8 R:0 D:1
…
row group 1: RC:87 TS:4687 OFFSET:4
--------------------------------------------------------------------------------
hoge: BINARY SNAPPY DO:0 FPO:4 SZ:1281/3193/2.49 VC:87 ENC:BIT_PACKED,PLAIN,RLE ST:[no stats for this column]
…
Congratulations
Recommended Posts