Skip to content

Cloudera API failing to import cluster template #142

Answered by HirossxD
ovolmar asked this question in Help
Discussion options

You must be logged in to vote

I had the same problem, the issue was in the definition.yml when setting multiple disks in the dfs_data_dir_list.
You cannot use the array/list format like:

 DATANODE:
          dfs_data_dir_list:
            - /dfs/disk1
            - /dfs/disk2
            - /dfs/disk3

I have used the comma separated paths in one line instead, it worked afterwards.
for example:

 DATANODE:
          dfs_data_dir_list: /dfs/dn1,/dfs/dn2,/dfs/dn3,/dfs/dn4

The error mesage itself Cannot deserialize instance of java.lang.String out of START_ARRAY tells you that CM cannot read/parse the array of paths, it is all being imported in the first input field of dfs.data.data.dir config, which does not accept array.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by wmudge
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #92 on October 05, 2023 16:18.