[jira] [Created] (KAFKA-8610) Don't use /bin/bash in scripts

2019-06-27 Thread Richard Lee (JIRA)
Richard Lee created KAFKA-8610:
--

 Summary: Don't use /bin/bash in scripts
 Key: KAFKA-8610
 URL: https://issues.apache.org/jira/browse/KAFKA-8610
 Project: Kafka
  Issue Type: Improvement
Reporter: Richard Lee


On small container installations (such as alpine), /bin/bash is not installed. 
It appears the scripts in the /bin directory would mostly work with /bin/sh. 
Please use a simpler shell for shell scripts so that they are more portable.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (KAFKA-1543) Changing replication factor

2016-07-06 Thread Richard Lee (JIRA)

[ 
https://issues.apache.org/jira/browse/KAFKA-1543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15365357#comment-15365357
 ] 

Richard Lee commented on KAFKA-1543:


This jira item seems orphaned.  Anyway, I took another stab at this in the 
0.10.1.0 branch.  See https://github.com/apache/kafka/pull/1596

I decided that kafka-topics.sh might not be the best place to change 
replication factor, since it can have a pretty heavy impact on partition 
assignment in the cluster.  So, left it in kafka-reassign-partitions.sh, but 
made it a per-topic config rather than a global command line argument, so that 
each topic can specify its own replication factor.

Also, as kafka-reassign-partitions.sh is intended to operate on a running 
cluster with --verify feedback of progress, it seems more likely to sidestep 
any issues that would require cluster restart.

> Changing replication factor
> ---
>
> Key: KAFKA-1543
> URL: https://issues.apache.org/jira/browse/KAFKA-1543
> Project: Kafka
>  Issue Type: Improvement
>Reporter: Alexey Ozeritskiy
>Assignee: Alexander Pakulov
> Attachments: can-change-replication.patch
>
>
> It is difficult to change replication factor by manual editing json config.
> I propose to add a key to kafka-reassign-partitions.sh command to 
> automatically create json config.
> Example of usage
> {code}
> kafka-reassign-partitions.sh --zookeeper zk --replicas new-replication-factor 
> --topics-to-move-json-file topics-file --broker-list 1,2,3,4 --generate > 
> output
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)