[
https://issues.apache.org/jira/browse/KNOX-2100?focusedWorklogId=340896&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-340896
]
ASF GitHub Bot logged work on KNOX-2100:
----------------------------------------
Author: ASF GitHub Bot
Created on: 09/Nov/19 06:34
Start Date: 09/Nov/19 06:34
Worklog Time Spent: 10m
Work Description: smolnar82 commented on pull request #181: KNOX-2100 -
Make sure knoxshell initializes logging by using the 'launcher' framework like
other products (gateway, cli, ldap) do
URL: https://github.com/apache/knox/pull/181
----------------------------------------------------------------
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]
Issue Time Tracking
-------------------
Worklog Id: (was: 340896)
Time Spent: 50m (was: 40m)
> knoxshell doesn't setup logging correctly
> -----------------------------------------
>
> Key: KNOX-2100
> URL: https://issues.apache.org/jira/browse/KNOX-2100
> Project: Apache Knox
> Issue Type: Bug
> Components: KnoxShell
> Reporter: Kevin Risden
> Assignee: Sandor Molnar
> Priority: Major
> Labels: beginner
> Fix For: 1.4.0
>
> Time Spent: 50m
> Remaining Estimate: 0h
>
> KnoxShell has a log4j properties but doesn't look like packaging is setup
> correctly to use that since log4j is missing.
> {code:java}
> ./bin/knoxshell.sh init https://knox_host/default/knox-token
> Enter username: guest
> Enter password:
> log4j:WARN No appenders could be found for logger
> (org.apache.http.client.protocol.RequestAddCookies).
> log4j:WARN Please initialize the log4j system properly.
> log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more
> info.
> Failure to acquire token. Please verify your credentials and Knox URL and try
> again.
> {code}
> This looks like a packaging issue potentially.
> {code:java}
> # ls -l
> total 84
> drwxr--r-- 2 root root 91 Nov 6 15:26 bin
> drwxr--r-- 2 root root 40 Nov 6 15:25 conf
> -r--r--r-- 1 root root 73521 Jul 17 02:27 LICENSE
> -r--r--r-- 1 root root 165 Jul 17 02:27 NOTICE
> -rw-r--r-- 1 root root 1452 Jul 17 02:27 README
> drwxr-xr-x 3 root root 4096 Jul 17 02:35 samples
> # ls -l bin/
> total 14568
> -rwxr-xr-x 1 root root 5583 Jul 17 02:35 knox-env.sh
> -rwxr-xr-x 1 root root 6491 Jul 17 02:35 knox-functions.sh
> -rw-r--r-- 1 root root 14893168 Jul 17 02:35 knoxshell.jar
> -rwxr-xr-x 1 root root 3482 Jul 17 02:27 knoxshell.sh
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)