Package Details: scylla-tools 2.2.0-1

Git Clone URL: https://aur.archlinux.org/scylla-tools.git (read-only)
Package Base: scylla-tools
Description: Tools to be used with ScyllaDB, such as cqlsh, nodetool and others
Upstream URL: http://www.scylladb.com/
Licenses: Apache
Conflicts: cassandra
Provides: scylla-tools
Submitter: Argenet
Maintainer: Argenet (dahankzter)
Last Packager: Argenet
Votes: 3
Popularity: 0.000512
First Submitted: 2017-12-24 07:37
Last Updated: 2018-07-25 04:44

Latest Comments

vludax commented on 2018-03-22 11:47

Oh I see! I've removed Java 9 and now this package builds successfully. Thanks for your time!

Argenet commented on 2018-03-21 21:27

vludax, I was able to reproduce this issue by forcing Java 9 environment to be used by default. The default Java environment can be found using archlinux-java script as follows:

% archlinux-java get                                                                                                                                   
java-9-openjdk

As mentioned before, scylla-tools does not compile with Java 9. I will update the PKGBUILD file to either explicitly use Java 8 environment, if that is possible, or error out in case if archlinux-java get returns something different from java-8-openjdk. Thanks for your help and patience!

Argenet commented on 2018-03-21 17:35

I checked with Scylla developers and they said Java 9 is not supported. FWIW, Cassandra does not support it either. There is some code that uses private symbols from Java 8 that are missing in Java 9.

Can you try to downgrade your Java compiler to see it it helps? If that resolves the issue, I will add constraints to the PKGBUILD file.

vludax commented on 2018-03-21 11:33

Hmm I run makepkg with -s to sync the dependencies. Both jre8-openjdk-headless and jdk8-openjdk are installed on my system, and I had installed scylla-jmx manually.

I've tried building it with yaourt, but unfortunately got the same error. Please see the build log at https://pastebin.com/kzhX2LQN

Argenet commented on 2018-03-20 16:19

Can you try to build using AUR helpers such as yaourt or pacaur? They bring in all the dependencies. With makepkg, one has to make sure all dependencies are satisfied upfront.

vludax commented on 2018-03-20 09:35

javac 9.0.4

I build it with makepkg

Argenet commented on 2018-03-19 22:08

Hi vludax,

I tried to build scylla-tools and it works fine for me. From the posted log, I feel like there might be some Java version mismatch. Can you post the output of javac -version? Another question is, do you install dependencies through yaourt/pacaur or just build it directy using makepkg from PKGBUILD file?

vludax commented on 2018-03-19 10:44

Hey Argenet, unfortunately the package seems to be failing at the build-project step. Would you have any clue how I could get it to build? Thanks!

Build log: Buildfile: /tmp/scylla-tools/src/scylla-tools-java/build.xml

init:

maven-ant-tasks-localrepo:

maven-ant-tasks-download:

maven-ant-tasks-init:

maven-declare-dependencies:

maven-ant-tasks-retrieve-build:

init-dependencies: [echo] Loading dependency paths from file: /tmp/scylla-tools/src/scylla-tools-java/build/build-dependencies.xml

init-dependencies: [echo] Loading dependency paths from file: /tmp/scylla-tools/src/scylla-tools-java/build/build-dependencies-sources.xml [unzip] Expanding: /tmp/scylla-tools/src/scylla-tools-java/build/lib/jars/org.jacoco.agent-0.7.5.201505241946.jar into /tmp/scylla-tools/src/scylla-tools-java/build/lib/jars

check-gen-cql3-grammar:

gen-cql3-grammar:

generate-cql-html:

build-project: [echo] apache-cassandra: /tmp/scylla-tools/src/scylla-tools-java/build.xml [javac] Compiling 888 source files to /tmp/scylla-tools/src/scylla-tools-java/build/classes/main [javac] Note: Processing compiler hints annotations [javac] warning: Supported source version 'RELEASE_6' from annotation processor 'org.openjdk.jmh.generators.BenchmarkProcessor' less than -source '1.8' [javac] Note: Processing compiler hints annotations [javac] Note: Writing compiler command file at META-INF/hotspot_compiler [javac] Note: Done processing compiler hints annotations [javac] /tmp/scylla-tools/src/scylla-tools-java/src/java/org/apache/cassandra/utils/Throwables.java:80: error: unreported exception Exception; must be caught or declared to be thrown [javac] perform(Stream.of(actions)); [javac] ^ [javac] /tmp/scylla-tools/src/scylla-tools-java/src/java/org/apache/cassandra/utils/concurrent/Locks.java:46: error: cannot find symbol [javac] unsafe.monitorEnter(object); [javac] ^ [javac] symbol: method monitorEnter(Object) [javac] location: variable unsafe of type Unsafe [javac] /tmp/scylla-tools/src/scylla-tools-java/src/java/org/apache/cassandra/utils/concurrent/Locks.java:52: error: cannot find symbol [javac] unsafe.monitorExit(object); [javac] ^ [javac] symbol: method monitorExit(Object) [javac] location: variable unsafe of type Unsafe [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 3 errors [javac] 1 warning

BUILD FAILED /tmp/scylla-tools/src/scylla-tools-java/build.xml:763: Compile failed; see the compiler error output for details.

Argenet commented on 2017-12-24 09:48

You are most welcome! Please note that there are still issues to be addressed for this package as Arch Linux uses python3 as a default Python interpreter but the scripts in this package assume 'python' to be 'python2' therefore some warnings/errors are possible.

I will send a pull request to the GitHub repository, in the meantime this should be possible to resolve locally with sed scripts. Expect an update of the package soon to address it.

vludax commented on 2017-12-24 09:12

Thank you! :)