Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-14396

Error about JNA on Startup

    XMLWordPrintableJSON

    Details

      Description

       

      Hi, all.

      I got some error on startup.

      this is my own backup server which can't use network.

      I just extracted 'apache-cassandra-3.11.2-bin.tar.gz' file to /usr/local/cassandra.

      and then ran like this 'cassandra -f'.

      but log displayed below's error.

       

      I found some way to solve. but it's not working.

      after JNA library download, make JNA library symbolic link - not working

      can anyone advise to me about this issue?(I attached full logging file)

       

      ERROR [main] 2018-04-18 10:44:59,536 NativeLibraryLinux.java:62 - Failed to link the C library against JNA. Native methods will be unavailable.
      java.lang.UnsatisfiedLinkError: /tmp/jna-3506402/jna5682737284440877593.tmp: /tmp/jna-3506402/jna5682737284440877593.tmp: failed to map segment from shared object: Operation not permitted
      at java.lang.ClassLoader$NativeLibrary.load(Native Method) ~[na:1.8.0_152]
      at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1941) ~[na:1.8.0_152]
      at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1824) ~[na:1.8.0_152]
      at java.lang.Runtime.load0(Runtime.java:809) ~[na:1.8.0_152]
      at java.lang.System.load(System.java:1086) ~[na:1.8.0_152]
      at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:851) ~[jna-4.2.2.jar:4.2.2 (b0)]
      at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:826) ~[jna-4.2.2.jar:4.2.2 (b0)]
      at com.sun.jna.Native.<clinit>(Native.java:140) ~[jna-4.2.2.jar:4.2.2 (b0)]
      at org.apache.cassandra.utils.NativeLibraryLinux.<clinit>(NativeLibraryLinux.java:53) ~[apache-cassandra-3.11.2.jar:3.11.2]
      at org.apache.cassandra.utils.NativeLibrary.<clinit>(NativeLibrary.java:93) [apache-cassandra-3.11.2.jar:3.11.2]
      at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:196) [apache-cassandra-3.11.2.jar:3.11.2]
      at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:602) [apache-cassandra-3.11.2.jar:3.11.2]
      at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:691) [apache-cassandra-3.11.2.jar:3.11.2]
      WARN [main] 2018-04-18 10:44:59,537 StartupChecks.java:136 - jemalloc shared library could not be preloaded to speed up memory allocations
      WARN [main] 2018-04-18 10:44:59,537 StartupChecks.java:169 - JMX is not enabled to receive remote connections. Please see cassandra-env.sh for more info.
      ERROR [main] 2018-04-18 10:44:59,539 CassandraDaemon.java:708 - The native library could not be initialized properly.

        Attachments

        1. cassandra.log
          18 kB
          Joe

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              queza Joe
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: