[ https://issues.apache.org/jira/browse/STORM-1213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15011957#comment-15011957 ]
ASF GitHub Bot commented on STORM-1213: --------------------------------------- Github user revans2 commented on the pull request: https://github.com/apache/storm/pull/887#issuecomment-157862181 Even with changing the directory I am getting ``` java.lang.UnsatisfiedLinkError: org.hyperic.sigar.Sigar.getPid()J at org.hyperic.sigar.Sigar.getPid(Native Method) ~[stormjar.jar:0.11.0-SNAPSHOT] at org.apache.storm.metrics.sigar.CPUMetric.<init>(CPUMetric.java:38) ~[stormjar.jar:0.11.0-SNAPSHOT] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0] at java.lang.reflect.Constructor.newInstance(Constructor.java:408) ~[?:1.8.0] at java.lang.Class.newInstance(Class.java:433) ~[?:1.8.0] at backtype.storm.utils.Utils.newInstance(Utils.java:91) ~[storm-core-0.11.0-SNAPSHOT.jar:0.11.0-SNAPSHOT] at backtype.storm.metric.SystemBolt.registerMetrics(SystemBolt.java:150) ~[storm-core-0.11.0-SNAPSHOT.jar:0.11.0-SNAPSHOT] at backtype.storm.metric.SystemBolt.prepare(SystemBolt.java:143) ~[storm-core-0.11.0-SNAPSHOT.jar:0.11.0-SNAPSHOT] at backtype.storm.daemon.executor$fn__5157$fn__5170.invoke(executor.clj:777) ~[storm-core-0.11.0-SNAPSHOT.jar:0.11.0-SNAPSHOT] at backtype.storm.util$async_loop$fn__556.invoke(util.clj:480) [storm-core-0.11.0-SNAPSHOT.jar:0.11.0-SNAPSHOT] at clojure.lang.AFn.run(AFn.java:22) [clojure-1.7.0.jar:?] at java.lang.Thread.run(Thread.java:744) [?:1.8.0] ``` We need to do some more work to understand the difference between this patch and what we were doing before. > Remove sigar binaries from source tree > -------------------------------------- > > Key: STORM-1213 > URL: https://issues.apache.org/jira/browse/STORM-1213 > Project: Apache Storm > Issue Type: Bug > Affects Versions: 0.11.0 > Reporter: P. Taylor Goetz > Assignee: P. Taylor Goetz > > In {{external/storm-metrics}} sigar native binaries were added to the source > tree. Since Apache releases are source-only, these binaries can't be included > in a release. > My initial thought was just to exclude the binaries from the source > distribution, but that would mean that distributions built from a source > tarball would not match the convenience binaries from a release (the sigar > native binaries would not be included. > The solution I came up with was to leverage the fact that pre-built native > binaries are included in the sigar maven distribution > ({{sigar-x.x.x-native.jar}}) and use the maven dependency plugin to unpack > them into place during the build, rather than check them into git. One > benefit is that it will ensure the versions of the sigar jar and the native > binaries match. Another is that mavens checksum/signature checking mechanism > will also be applied. > This isn't an ideal solution since the {{sigar-x.x.x-native.jar}} only > includes binaries for linux, OSX, and solaris (notably missing windows DLLs), > whereas the non-maven sigar download includes support for a wider range of > OSes and architectures. > I view this as an interim measure until we can find a better way to include > the native binaries in the build process, rather than checking them into the > source tree -- which would be a blocker for releasing. -- This message was sent by Atlassian JIRA (v6.3.4#6332)