Comments (8)
Only on Python3.* version
from cassandradump.
@zaibacu , have you got solution for this syntex error? I have same problem.
from cassandradump.
quickfix would be:
lambda (k, v): v.data_type.typename == 'counter'
->
lambda x: x[1].data_type.typename == 'counter'
Maybe I will do PR if will not forget, issue seems to be a bit old
from cassandradump.
It would be batter if you provide "cassandradump.py" file after updating as "k" and "v" variable used at some other place as well.
Thanks
from cassandradump.
after replacing you code and executing following command.
python cassandradump.py --keyspace ABC --import-file sqldump.mysql
Got the following error:
<codecs.StreamReaderWriter object at 0x10f320278>
Traceback (most recent call last):
File "cassandradump.py", line 406, in
main()
File "cassandradump.py", line 398, in main
import_data(session)
File "cassandradump.py", line 152, in import_data
session.execute(statement)
File "cassandra/cluster.py", line 2171, in cassandra.cluster.Session.execute
File "cassandra/cluster.py", line 4062, in cassandra.cluster.ResponseFuture.result
cassandra.protocol.SyntaxException: <Error from server: code=2000 [Syntax error in CQL query] message="line 1:64 no viable alternative at input ';' (/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */[;])">
Can you please help me out?
Thanks
from cassandradump.
Well this error is kinda unrelated, and more like a problem with this project itself.
However, at first glance - it looks that you're trying to import MySQL file to Cassandra? Cassandra uses CQL. CQL is mostly similar, but there are some syntax differences which makes it incompatible
from cassandradump.
Thanks for your time. as this repository mention, You can import/export data from cassandra so i am tring exact things. however have you ever tried to dump all mysql database to cassandra ?
Thanks
from cassandradump.
I'm closing this one since I just merged the relative PR. @jpatel956 the goal of this project is not to make it compatible with MySQL, it's just to have a quick and easy way to dump Cassandra data as if it was the mysqldump tool, but MySQL doesn't really enter into the picture here.
Thanks
from cassandradump.
Related Issues (13)
- Does not work with database containing unicode data. HOT 7
- There is no version specified for cassandra-driver in requires HOT 2
- AttributeError: 'ColumnMetadata' object has no attribute 'data_type' HOT 9
- UDTs (User-Defined Types) are not encoded correctly HOT 1
- schema dump ";;"
- Anything I can do to speedup keyspace dump ? HOT 1
- It would be great to be able to rename keyspaces as part of the export.
- Export incorrectly quotes Maps
- Ignore system keyspaces
- Exception on import large database HOT 1
- Connection Failed HOT 2
- Not working with case sensitive columnfamily names and colums
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cassandradump.