Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Who Me Too'd this solution

Re: Problem with cloudera agent

Super Guru

You might do something like this:

 

 

# alternatives --list | awk '{print $1}' | xargs -n1 alternatives --display |grep "^/" > all_alternatives.txt

# awk -F ' ' -v NCOLS=4 'NF!=NCOLS{printf "Wrong number of columns at line %d\n", NR}' all_alternatives.txt

 

The above will list out all the alternatives display information and write that to a file

Then, it will check to see if there are any lines with more or less than 4 columns and print out the line number.

You could then use that line number to reference the all_alternatives.txt file line.

 

That should show us which alternative is tripping up the agent.

Who Me Too'd this solution