Add http header: X–XSRF–HEADER:valid
- Check the log /var/log/ranger/tagsync/tagsync.out, if it complains missing classes, copy two jar files: commons-codec-1.4.jar and commons-compress-1.4.1.jar from /usr/hdp/current/hadoop-client/lib/ to /usr/hdp/current/ranger-tagsync/lib/.
If you have PLAINTEXTSASL enabled and you get the error similar as below:
WARN Bootstrap broker <host>:<port> (id: -2 rack: null) disconnected (org.apache.kafka.clients.NetworkClient)
You can try to fix it by adding a command option: –security-protocol PLAINTEXTSASL.
- Check if the setting yarn.timeline-service.version is 1.5 in YARN
- If so, make sure the setting yarn.timeline-service.store-class is set to org.apache.hadoop.yarn.server.timeline.EntityGroupFSTimelineStore
Basically, there are three different ways:
- Pass as rows
- Pass as parameters
- Pass as arguments