Support Questions
Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Innovation Accelerator group hub.

can't set value in jolt with modify-overwrite-beta

New Contributor

I want to create new node(seed) and set value to that
but my code not working. I this my path in modify-overwrite-beta is wrong.

 

"ai":{
      "model_structure":{
            "backend":"tensorflow",
	    "seed":100,
             "model_type":"Deep"
   }
{
    "operation": "modify-overwrite-beta",
    "spec": {
      "jobInput": {
        "ai": {
          "common": {
            "seed": "=@(ai.model_structure.seed)"
          }
        }
      }
    }
  }

 

1 REPLY 1

New Contributor

it is the answer
```

{
"operation": "modify-overwrite-beta",
"spec": {
"jobInput": {
"ai": {
"common": {
"seed": "@(4,ai.model_structure.seed)"
}
}
}
}
}



@(4,ai.model_structure.seed) means backward 4step on json tree and use seed with path(ai.model_structure.seed).