Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Anacron job error with Druid log

avatar
Explorer

Hello,

I receive each day the following error:

/etc/cron.daily/logrotate:
error: druid:12 unknown unit 'B'
error: found error in /var/log/druid/*.log , skipping

My research on internet aren't so successful as I hoped!

I'm running HDP 2.6 on Centos 7.

Anyone has an idea?

Thank you in advance for your answer.

Arnault

1 ACCEPTED SOLUTION

avatar
Expert Contributor

@Arnault Droz this seems to correspond to this issue

https://devcentral.f5.com/questions/wrong-logrotate-configuration-for-var-log-monitors-generating-an...

i am not sure what we are not hitting this, but it seems to be an OS miss match version maybe.

Can you please try to fix it locally by editing

23480-logrotatepage.png

template file from ambari UI and replace "

size {{druid_log_maxfilesize}}MB

" with

size {{druid_log_maxfilesize}}M

View solution in original post

3 REPLIES 3

avatar
Expert Contributor

@Arnault Droz this seems to correspond to this issue

https://devcentral.f5.com/questions/wrong-logrotate-configuration-for-var-log-monitors-generating-an...

i am not sure what we are not hitting this, but it seems to be an OS miss match version maybe.

Can you please try to fix it locally by editing

23480-logrotatepage.png

template file from ambari UI and replace "

size {{druid_log_maxfilesize}}MB

" with

size {{druid_log_maxfilesize}}M

avatar
Explorer

Hello, thank you a lot @Slim I made the change and I will see tomorrow morning if the error is gone or not. I will keep you in touch.

Arnault

avatar
Explorer

Hello again,

So your answer is the right one to my problem. No more error messages.

So thank you a lot.

Arnault