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

ASF GitHub Bot commented on NUTCH-2784:
---------------------------------------

sebastian-nagel opened a new pull request #518:
URL: https://github.com/apache/nutch/pull/518


   Because it's a Nutch/Hadoop tool it really uses the same configuration 
mechanism as all other tools, including command-line overrides:
   
   ```bash
   $> bin/nutch showproperties | (head -2 && grep delay)
   conf.name                                       conf.value     
substituted.value
   
================================================================================
   crawl.gen.delay                                                        
604800000
   fetcher.max.crawl.delay                                                      
 30
   fetcher.min.crawl.delay              ${fetcher.server.delay}                 
5.0
   fetcher.server.delay                                                         
5.0
   fetcher.server.min.delay                                                     
0.0
   ipc.client.tcpnodelay                                                       
true
   page.load.delay                                                              
  3
   
   # command-line override of fetcher.server.delay:
   $> bin/nutch showproperties -Dfetcher.server.delay=10.0 | (head -2 && grep 
delay)
   conf.name                                       conf.value     
substituted.value
   
================================================================================
   crawl.gen.delay                                                        
604800000
   fetcher.max.crawl.delay                                                      
 30
   fetcher.min.crawl.delay              ${fetcher.server.delay}                
10.0
   fetcher.server.delay                                                        
10.0
   fetcher.server.min.delay                                                     
0.0
   ipc.client.tcpnodelay                                                       
true
   page.load.delay
   ```
   
   If configured and substituted value are identical only one is shown.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


> Add tool to list Nutch and Hadoop properties
> --------------------------------------------
>
>                 Key: NUTCH-2784
>                 URL: https://issues.apache.org/jira/browse/NUTCH-2784
>             Project: Nutch
>          Issue Type: Improvement
>          Components: tool
>            Reporter: Sebastian Nagel
>            Priority: Minor
>             Fix For: 1.17
>
>
> Nutch properties are defined in nutch-default.xml but can be redefined 
> (overridden) in nutch-site.xml or from command-line (-Dproperty=value). In 
> addition, property definitions can include other properties 
> ({{${property.name}}}) which makes it sometimes hard to figure out what the 
> actual value of a property is.
> In short, a command-line tool which lists all properties and the configured 
> values could be useful.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to