Skip to content

Instantly share code, notes, and snippets.

@racheliurui
Last active June 29, 2017 03:44
Show Gist options
  • Save racheliurui/6a0bfc94ebdeded381264d8dd6f555ca to your computer and use it in GitHub Desktop.
Save racheliurui/6a0bfc94ebdeded381264d8dd6f555ca to your computer and use it in GitHub Desktop.
Hortonworks-HDF
@racheliurui
Copy link
Author

racheliurui commented Jun 16, 2017

======Question: to delete kafka topic
default installation , in server.properties , the delete.topic.enable=false, need to modify to true
======S1====
Step1, Ambari UI the value is readonly, tried to manually vi the server.properties file, and from UI it's not updated (nothing restarted).
Tried to restart kafka, the configuration is reverted back , and configuration file was saying the config is generated by Ambari.
Step2, stoped one kafka and then the config can be modified, while saving , pop up saying whole cluster need restart.
after restart, all the configurations are updated.
=====S2======
Follow similiar steps to set auto.create.topics.enable=false

@racheliurui
Copy link
Author

========Question: to change to Kafka topic default rentation date
Depreated...
bin/kafka-topics.sh --zookeeper zk.yoursite.com --alter --topic as-access --config retention.ms=86400000

/usr/hdf/current/kafka-broker/bin/kafka-configs.sh --zookeeper zookeeperhost:2181 --alter --entity-type topics --entity-name mytopic --add-config retention.ms=86400000

Verify the config by describe the topic

@racheliurui
Copy link
Author

===Problem===
Failed to connect node to cluster because local flow is different than cluster flow.
Nifi not clean install, and got issue and throws above excepton
Solve: copy flow file onto the other out of sync server and start.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment