You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@fluo.apache.org by GitBox <gi...@apache.org> on 2020/01/15 21:04:09 UTC

[GitHub] [fluo-muchos] keith-turner commented on a change in pull request #309: Enable debug logging for Accumulo 2.0

keith-turner commented on a change in pull request #309: Enable debug logging for Accumulo 2.0
URL: https://github.com/apache/fluo-muchos/pull/309#discussion_r367105837
 
 

 ##########
 File path: ansible/roles/accumulo/tasks/main.yml
 ##########
 @@ -61,3 +61,12 @@
     creates: "{{ accumulo_home }}/lib/native/libaccumulo.so"
 - name: "Create accumulo log dir"
   file: path={{ worker_data_dirs[0] }}/logs/accumulo state=directory
+- name: "Enable debug logging in Accumulo 2.0"
+  replace: 
+    path: "{{ accumulo_home }}/conf/{{ item }}"
+    regexp: '^log4j.rootLogger.*'
+    replace: "log4j.rootLogger=DEBUG, file"
 
 Review comment:
   When I run accumulo test I usually add a line like the following to `log4j-service.properties`
   
   ```
   log4j.logger.org.apache.accumulo=DEBUG
   ```
   
   This only enables debug logging for Accumulo code.  The change `log4j.rootLogger=DEBUG, file` will enable debug logging for everything like Hadoop and Zookeeper.  I am not sure how voluminous or useful this is.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services