Uploaded image for project: 'Marathon'
  1. Marathon
  2. MARATHON-7901

Marathon 1.5.1 could not load libmesos.so when using MESOS_NATIVE_JAVA_LIBRARY

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Mesos Integration
    • Labels:

      Description

      Marathon 1.5.1 could not find the libmesos.so when i set MESOS_NATIVE_JAVA_LIBRARY, here is the log

      $ export MESOS_NATIVE_JAVA_LIBRARY=/lib64/libmesos.so
      $ ./bin/marathon --disable_ha --master *******:5050
      
      No start hook file found ($HOOK_MARATHON_START). Proceeding with the start script.
      [2017-11-03 18:19:12,175] INFO  Initializing Kamon... (kamon.Kamon$Instance:main)
      [2017-11-03 18:19:12,675] INFO  Kamon-autoweave has been successfully loaded. (kamon.Kamon$Instance:main)
      [2017-11-03 18:19:12,676] INFO  The AspectJ load time weaving agent is now attached to the JVM (you don't need to use -javaagent). (kamon.Kamon$Instance:main)
      [2017-11-03 18:19:12,678] INFO  This offers extra flexibility but obviously any classes loaded before attachment will not be woven. (kamon.Kamon$Instance:main)
      [INFO] [11/03/2017 18:19:13.309] [main] [DatadogExtension(akka://kamon)] Starting the Kamon(Datadog) extension
      [INFO] [11/03/2017 18:19:13.332] [main] [StatsDExtension(akka://kamon)] Starting the Kamon(StatsD) extension
      [INFO] [11/03/2017 18:19:13.348] [main] [SystemMetricsExtension(akka://kamon)] Starting the Kamon(SystemMetrics) extension
      [2017-11-03 18:19:13,359] INFO  Sigar library provisioned: /home/xulei.xu/marathon-1.5.0-96-gf84298d/bin/native/libsigar-amd64-linux.so (kamon.sigar.SigarProvisioner:main)
      [INFO] [11/03/2017 18:19:13.546] [main] [JMXExtension(akka://kamon)] Starting the Kamon(JMX) extension
      [INFO] [11/03/2017 18:19:13.555] [main] [JMXMetricsExtension(akka://kamon)] Starting the Kamon(JMXMetrics) extension
      registering jmx exporter
      [2017-11-03 18:19:13,606] INFO  Slf4jLogger started (akka.event.slf4j.Slf4jLogger:marathon-akka.actor.default-dispatcher-4)
      [2017-11-03 18:19:13,659] INFO  Starting Marathon 1.5.0-96-gf84298d/f84298d78858af0e8d445651f2310153addb1f82 with --disable_ha --master *****:5050 (mesosphere.marathon.MarathonApp:JMX exporting thread)
      [2017-11-03 18:19:13,706] ERROR Terminating 8080 due to uncaught exception in thread JMX exporting thread:1 (mesosphere.marathon.MarathonApp:JMX exporting thread)
      java.lang.RuntimeException: 'libmesos' not loaded
          at org.apache.mesos.MesosNativeLibrary.version(MesosNativeLibrary.java:211)
          at mesosphere.mesos.LibMesos$.version$lzycompute(LibMesos.scala:26)
          at mesosphere.mesos.LibMesos$.version(LibMesos.scala:23)
          at mesosphere.mesos.LibMesos$.isCompatible(LibMesos.scala:41)
          at mesosphere.marathon.MarathonApp.start(Main.scala:107)
          at mesosphere.marathon.Main$.main(Main.scala:206)
          at mesosphere.marathon.Main.main(Main.scala)
      

       and here is my mesos libraries (in the same host):

      $ rpm -qss mesos
      normal        /usr/lib64/libfixed_resource_estimator-1.3.1.so
      normal        /usr/lib64/libfixed_resource_estimator.la
      normal        /usr/lib64/libfixed_resource_estimator.so
      normal        /usr/lib64/libload_qos_controller-1.3.1.so
      normal        /usr/lib64/libload_qos_controller.la
      normal        /usr/lib64/libload_qos_controller.so
      normal        /usr/lib64/liblogrotate_container_logger-1.3.1.so
      normal        /usr/lib64/liblogrotate_container_logger.la
      normal        /usr/lib64/liblogrotate_container_logger.so
      normal        /usr/lib64/libmesos-1.3.1.so
      normal        /usr/lib64/libmesos.la
      normal        /usr/lib64/libmesos.so
      $ ll /lib64/*mesos*
      -rwxr-xr-x 1 root root 39295072 Nov  2 14:11 /lib64/libmesos-1.3.1.so
      -rwxr-xr-x 1 root root     1234 Nov  2 14:09 /lib64/libmesos.la
      lrwxrwxrwx 1 root root       17 Nov  2 14:54 /lib64/libmesos.so -> libmesos-1.3.1.so
      $ ll /usr/lib64/*mesos*
      -rwxr-xr-x 1 root root 39295072 Nov  2 14:11 /usr/lib64/libmesos-1.3.1.so
      -rwxr-xr-x 1 root root     1234 Nov  2 14:09 /usr/lib64/libmesos.la
      lrwxrwxrwx 1 root root       17 Nov  2 14:54 /usr/lib64/libmesos.so -> libmesos-1.3.1.so
      

      what's wrong with my configuration ?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              brickxu BrickXu
              Team:
              Mesos Team
              Watchers:
              Andrei Budnik, azzzdiggr, BrickXu
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: