小编Nag*_*n S的帖子

Cassandra将数据移动到另一个新的Cassandra节点-

我有一个生产cassandra节点,想在我的本地计算机上创建相同的cassandra。据我了解,我可以选择以下选项

 1. Taking snapshot of each keyspace from production and use it in local machine.(But It would take more time as I have many keyspace).
 2. Exporting production cassandra data to as CSV and importing in to local cassandra(I have COUNTER TABLE. Hence,It also creating some headache - Correct me if it is not).
Run Code Online (Sandbox Code Playgroud)

我的问题是“如果将整个data_directory,Commit_log文件夹从生产环境移到本地并启动本地cassandra,将会发生什么?”。反正有可能吗?

当我执行上述解决方案时,cassandra会引发很多错误。

cassandra

5
推荐指数
1
解决办法
2141
查看次数

Linux - Shell脚本并行运行curl命令

我想创建linux shell脚本来并行运行CURL命令

例如:我有三个命令

  1. curl -s http://localhost/process.php?id = 1
  2. curl -s http://localhost/process.php?id = 2
  3. curl -s http://localhost/process.php?id = 3

我想同时调用上面三个命令.

任何帮助表示赞赏.

linux shell

5
推荐指数
1
解决办法
5719
查看次数

PHP-将字符串转换为日期时间格式

我有一个字符串 - 15/09/2015 12:00- [日/月/年]格式,我想将其转换为年 - 月 - 日[mysql日期时间格式].

我试着使用以下内容:

$myDateTime = $myDateTime->createFromFormat('d/m/Y H:i', '15/09/2015 12:00');
$newDateString = $myDateTime->format('Y-m-d H:i');
Run Code Online (Sandbox Code Playgroud)

但它会引发内部服务器错误.

php datetime

4
推荐指数
1
解决办法
9507
查看次数

标签 统计

cassandra ×1

datetime ×1

linux ×1

php ×1

shell ×1