我有一个版本为2.1.14的cassandra集群,并计划将其升级到3.0.6。 在升级指南中,它说:
Cassandra 3.0.x限制
从Cassandra 2.1版本升级或等于2.1.9直接升级到Cassandra 3.0.x.
那么,升级2.1.14到3.0.6时我应该运行nodetool upgradesstables
吗?
答案 0 :(得分:1)
是的,您应该运行private void button1_Click(object sender, EventArgs e)
{
if (_serialPort != null && _serialPort.IsOpen)
_serialPort.Close();
if (_serialPort != null)
_serialPort.Dispose();
_serialPort.BaudRate = Convert.ToInt16(cbBaud.Text);
_serialPort = new SerialPort(comboBox1.Text, BaudRate, Parity.None, 8, StopBits.One);
_serialPort.DataReceived += SerialPortOnDataReceived;
_serialPort.Open();
textBox1.Text = string.Format("Listening on {0}...", comboBox1.Text);
}
private delegate void Closure();
private void SerialPortOnDataReceived(object sender, SerialDataReceivedEventArgs serialDataReceivedEventArgs)
{
if (InvokeRequired)
BeginInvoke(new Closure(() => { SerialPortOnDataReceived(sender, serialDataReceivedEventArgs); }));
else
{
while (_serialPort.BytesToRead > 0)
{
textBox1.Text += string.Format("{0:X2} ", _serialPort.ReadByte());
}
}
。 SStables格式在2.1.x和3.x之间已经改变。一般upgrade procedures明确提到它应该在主要版本升级期间运行。