I'm having issues running the basic scripts in the...
# getting-started
j
I'm having issues running the basic scripts in the 0.8.0 apache pinot release with windows 7 and java 8 using git-bash-here as the terminal. I'm following this link for setup https://docs.pinot.apache.org/v/release-0.4.0/basics/getting-started/running-pinot-locally It seems like it can not find the java class files correctly. I currently only have JAVA_HOME set to pointed to the JDK8. I noticed in the 0.3.0 release notes there was something regarding java 8 (see image attached). Is there something special I need to do to get this to work?
m
Are you running the Pinot-admin.sh from distribution or did you build from source?
j
the 0.8.0 binary distribution
m
I noticed you mentioned
0.3.0
above, just want to ensure you defined
PINOT_VERSION
as
0.8.0
?
j
Yeah. I'm using 0.8.0 but I was just referencing .3 because the changelog mentioned java 8 and wasn't sure if it was related
m
Wondering if this could be related to windows env, most folks here don't really use Windows.
k
Looks like OOB scripts are not able to set java classpath properly, looking at scripts we do seem to have stuff specific to formatting classpath etc. for windows OS when using cygwin, for e.g
Copy code
if $cygwin; then
  [ -n "$CLASSPATH" ] && CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
  [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
  [ -n "$HOME" ] && HOME=`cygpath --path --windows "$HOME"`
  [ -n "$BASEDIR" ] && BASEDIR=`cygpath --path --windows "$BASEDIR"`
  [ -n "$REPO" ] && REPO=`cygpath --path --windows "$REPO"`
Instead of using
git-bash
can you try using cygwin instead ?
x
if you use jdk8, you can still build latest pinot
Copy code
<https://docs.pinot.apache.org/basics/getting-started/running-pinot-locally#build-from-source-or-download-the-distribution>
j
Thanks for the responses. I'll try to use cygwin instead of git-bash when I get back to it and see if that makes a difference
Using cygwin gets past the classpath issue but now its mentioning a JNI error between version 55 and 52. This makes it sounds like the JAR files were compiled with java 11 and are not compatible with java 8. Again this is running the `pinot-admin.sh`and it's saying it was compiled with java 11 and I'm running on Java 8. This makes me think I'm forced to build from source and compile it with a -target of 1.8 and I can't use any of the binary scripts to start and learn pinot
x
You need to build from sound with maven and jdk.version tag
From source *
Or you can use 0.7.1 release
That is the last version we release using jdk 8
j
That may be true, but that doesn't help that the 'quick-start' guide is not accessible to those who are working with a different version of java
Ok, Thanks. I'll try
0.7.1
and see if that works. I don't see in the release notes for either `0.7.1`or
0.8.0
regarding the java 8 deprecation
k
Pinot v0.8 has added support for Java11: https://github.com/apache/pinot/pull/6424 Mentioned in release notes as well
Copy code
After the 0.8.0 release, we will officially support jdk 11, and can now safely start to use jdk 11 features. Code is still compilable with jdk 8 (#6424)
Will also update the getting started page to clarify this: https://docs.pinot.apache.org/basics/getting-started/running-pinot-locally
j
Does this mean I have to build from source to use JDK8? It seems like using `0.8.0`binary download and running those scripts they are not compatible with JDK8 right now. When I go back to
0.7.1
like it was suggested I am able to use JDK8 with the binary download and scripts. Again - thanks for all the help
x
for 0.8.0, if you want to use it on jdk8, then you need to build it from source code
0.8.0 release binary is on jdk 11
j
Thanks!!!!