Uploaded image for project: 'Metron (Retired)'
  1. Metron (Retired)
  2. METRON-1831

Project Version Substitution Not Working

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Done
    • Major
    • Resolution: Done
    • None
    • 0.7.0
    • None

    Description

      Steps to Replicate:

      1. Spin-up development environment.
      2. Launch REPL.
      3. Notice the warning:
        bin/stellar: line 36: ${project.version}: bad substitution

       

      [root@node1 ~]# source /etc/default/metron
      [root@node1 ~]# cd $METRON_HOME
      [root@node1 0.6.1]# bin/stellar -z $ZOOKEEPER
      bin/stellar: line 36: ${project.version}: bad substitution
      SLF4J: Class path contains multiple SLF4J bindings.
      SLF4J: Found binding in [jar:file:/usr/metron/0.6.1/lib/metron-profiler-repl-0.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
      SLF4J: Found binding in [jar:file:/usr/hdp/2.6.5.0-292/hadoop/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
      SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
      SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
      Stellar, Go!
      Functions are loading lazily in the background and will be unavailable until loaded fully.
      {es.clustername=metron, es.ip=node1:9300, es.date.format=yyyy.MM.dd.HH, parser.error.topic=indexing, update.hbase.table=metron_update, update.hbase.cf=t, es.client.settings={client.transport.ping_timeout=500s}, es.document.id=, profiler.client.period.duration=15, profiler.client.period.duration.units=MINUTES, user.settings.hbase.table=user_settings, user.settings.hbase.cf=cf, bootstrap.servers=node1:6667, source.type.field=source:type, threat.triage.score.field=threat:triage:score, enrichment.writer.batchSize=15, enrichment.writer.batchTimeout=0, profiler.writer.batchSize=15, profiler.writer.batchTimeout=0, geo.hdfs.file=/apps/metron/geo/default/GeoLite2-City.mmdb.gz}

       

      This only seems to be a problem with the $METRON_HOME/bin/stellar script.

      [root@node1 0.6.1]# grep project.version bin/*
      bin/stellar:export METRON_VERSION="${METRON_VERSION:-${project.version}}"

      Attachments

        Issue Links

          Activity

            People

              nickwallen Nick Allen
              nickwallen Nick Allen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: