我有一个生产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会引发很多错误。
我想创建linux shell脚本来并行运行CURL命令
例如:我有三个命令
我想同时调用上面三个命令.
任何帮助表示赞赏.
我有一个字符串 - 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)
但它会引发内部服务器错误.