You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Eugene Koifman (JIRA)" <ji...@apache.org> on 2013/12/20 21:24:13 UTC

[jira] [Updated] (HIVE-5702) add logging on WebHCat startup to print all env var and Configuration

     [ https://issues.apache.org/jira/browse/HIVE-5702?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eugene Koifman updated HIVE-5702:
---------------------------------

    Description: 
this helps debugging/diagnosing issues
Something like:

Map<String, String> env = System.getenv();
      List<String> propKeys = new ArrayList<String>(env.keySet());
      Collections.sort(propKeys);
      LOG.info("WebHCat environment:");
      for(String propKey : propKeys) {
        LOG.info(propKey + "=" + env.get(propKey));
      }
      LOG.info("Configuration props:");
      Iterator<Map.Entry<String, String>> configProps = appConf.iterator();
      while(configProps.hasNext()) {
        Map.Entry<String, String> ent = configProps.next();
        LOG.info(ent.getKey() + "=" + ent.getValue());
      }


Could be useful to add a REST call to dump such info as well  (is security a concern here?)

Also, make sure to log what config files it attempted to load and which it actually did load.

  

  was:
this helps debugging/diagnosing issues
Something like:

Map<String, String> env = System.getenv();
      List<String> propKeys = new ArrayList<String>(env.keySet());
      Collections.sort(propKeys);
      LOG.info("WebHCat environment:");
      for(String propKey : propKeys) {
        LOG.info(propKey + "=" + env.get(propKey));
      }
      LOG.info("Configuration props:");
      Iterator<Map.Entry<String, String>> configProps = appConf.iterator();
      while(configProps.hasNext()) {
        Map.Entry<String, String> ent = configProps.next();
        LOG.info(ent.getKey() + "=" + ent.getValue());
      }
  


> add logging on WebHCat startup to print all env var and Configuration
> ---------------------------------------------------------------------
>
>                 Key: HIVE-5702
>                 URL: https://issues.apache.org/jira/browse/HIVE-5702
>             Project: Hive
>          Issue Type: Bug
>          Components: WebHCat
>    Affects Versions: 0.13.0
>            Reporter: Eugene Koifman
>            Assignee: Eugene Koifman
>            Priority: Minor
>
> this helps debugging/diagnosing issues
> Something like:
> Map<String, String> env = System.getenv();
>       List<String> propKeys = new ArrayList<String>(env.keySet());
>       Collections.sort(propKeys);
>       LOG.info("WebHCat environment:");
>       for(String propKey : propKeys) {
>         LOG.info(propKey + "=" + env.get(propKey));
>       }
>       LOG.info("Configuration props:");
>       Iterator<Map.Entry<String, String>> configProps = appConf.iterator();
>       while(configProps.hasNext()) {
>         Map.Entry<String, String> ent = configProps.next();
>         LOG.info(ent.getKey() + "=" + ent.getValue());
>       }
> Could be useful to add a REST call to dump such info as well  (is security a concern here?)
> Also, make sure to log what config files it attempted to load and which it actually did load.
>   



--
This message was sent by Atlassian JIRA
(v6.1.4#6159)