[ 
https://issues.apache.org/jira/browse/EAGLE-728?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15643005#comment-15643005
 ] 

ASF GitHub Bot commented on EAGLE-728:
--------------------------------------

Github user wujinhu commented on a diff in the pull request:

    https://github.com/apache/incubator-eagle/pull/612#discussion_r86710130
  
    --- Diff: 
eagle-jpm/eagle-hadoop-queue/src/main/resources/META-INF/providers/org.apache.eagle.hadoop.queue.HadoopQueueRunningAppProvider.xml
 ---
    @@ -47,6 +47,12 @@
           <description>interval seconds of fetching metric from resource 
manager</description>
           <value>10</value>
         </property>
    +    <property>
    +      <name>job.name.normalization.rules.key</name>
    +      <displayName>Job Name Normalization Rules Key</displayName>
    +      <description>User use -Dkey=job name normalization 
rules</description>
    +      <value>^(.*)[0-9]{4}/[0-9]{2}/[0-9]{2}/[0-9]{2}$ => $1~ ; 
^(oozie:launcher):T=(.*):W=(.*):A=(.*):ID=(?:.*)$ => $1-$2-$3-$4~ ; 
^(.*)([0-9]{10})$ => $1~ ; 
^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$ => uuid~ ; 
^(.*)(?:[0-9]{8}/[0-9]{2}_[0-9]{2})$ => $1~</value>
    +    </property>
       </configuration>
    --- End diff --
    
    Please remove this configuration from these Provider xml files. Since we 
have 'Custom' function so that advanced users can add other configurations(like 
this) if they want.
    If user passes this custom defined configuration, it will override the 
predefined value.


> Application can't load application.properties when running local mode
> ---------------------------------------------------------------------
>
>                 Key: EAGLE-728
>                 URL: https://issues.apache.org/jira/browse/EAGLE-728
>             Project: Eagle
>          Issue Type: Bug
>            Reporter: Lingang Deng
>            Assignee: Lingang Deng
>
> When running local mode, jpm app can't get property 
> "job.name.normalization.rules.key", then get exception
> {code}
> ERROR [2016-11-02 15:18:04,382] 
> org.apache.eagle.jpm.mr.history.crawler.AbstractJobHistoryDAO: fail reading 
> job history file
> ! java.lang.NoClassDefFoundError: Could not initialize class 
> org.apache.eagle.jpm.util.JobNameNormalization
> ! at 
> org.apache.eagle.jpm.mr.history.parser.JHFEventReaderBase.handleJob(JHFEventReaderBase.java:199)
>  ~[eagle-topology-0.5.0-incubating-SNAPSHOT-assembly.jar:na]
> ! at 
> org.apache.eagle.jpm.mr.history.parser.JHFMRVer2EventReader.handleJobSubmitted(JHFMRVer2EventReader.java:187)
>  ~[eagle-topology-0.5.0-incubating-SNAPSHOT-assembly.jar:na]
> ! at 
> org.apache.eagle.jpm.mr.history.parser.JHFMRVer2EventReader.handleEvent(JHFMRVer2EventReader.java:53)
>  ~[eagle-topology-0.5.0-incubating-SNAPSHOT-assembly.jar:na]
> ! at 
> org.apache.eagle.jpm.mr.history.parser.JHFMRVer2Parser.parse(JHFMRVer2Parser.java:61)
>  ~[eagle-topology-0.5.0-incubating-SNAPSHOT-assembly.jar:na]
> ! at 
> org.apache.eagle.jpm.mr.history.crawler.DefaultJHFInputStreamCallback.onInputStream(DefaultJHFInputStreamCallback.java:58)
>  ~[eagle-topology-0.5.0-incubating-SNAPSHOT-assembly.jar:na]
> ! at 
> org.apache.eagle.jpm.mr.history.crawler.AbstractJobHistoryDAO.readFileContent(AbstractJobHistoryDAO.java:123)
>  ~[eagle-topology-0.5.0-incubating-SNAPSHOT-assembly.jar:na]
> ! at 
> org.apache.eagle.jpm.mr.history.crawler.JHFCrawlerDriverImpl.crawl(JHFCrawlerDriverImpl.java:166)
>  [eagle-topology-0.5.0-incubating-SNAPSHOT-assembly.jar:na]
> ! at 
> org.apache.eagle.jpm.mr.history.storm.JobHistorySpout.nextTuple(JobHistorySpout.java:160)
>  [eagle-topology-0.5.0-incubating-SNAPSHOT-assembly.jar:na]
> ! at 
> backtype.storm.daemon.executor$fn__3373$fn__3388$fn__3417.invoke(executor.clj:565)
>  [storm-core-0.9.3.jar:0.9.3]
> ! at backtype.storm.util$async_loop$fn__464.invoke(util.clj:463) 
> [storm-core-0.9.3.jar:0.9.3]
> ! at clojure.lang.AFn.run(AFn.java:24) 
> [eagle-topology-0.5.0-incubating-SNAPSHOT-assembly.jar:na]
> ! at java.lang.Thread.run(Thread.java:745) [na:1.8.0_60]
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to