Mismatch in number of rows imported into cassandra table (COPY command)
I am trying to dump csv file into cassandra table using COPY command. But, number of rows in my csv file and number of rows in cassandra is not consistent.
Number of rows in CSV files : 49765 (excluding header)
Number of rows in cassandra table:
cqlsh:test_df> select Count(*) from test_table;
count
-------
46982
(1 rows)
Warnings :
Aggregation query used without partition key
copy command :
COPY test_table (column1,column2,column3) from 'temp.csv' with delimiter = ',' and header = True;
Error:
Starting copy of test_df.test_bhavcopy with columns [symbol, instrument, expiry_dt, strike_pr, option_typ, open, high, low, close, settle_pr, contracts, val_inlakh, open_int, ch_in_oi, price_date, key].
Process ImportProcess-3:ate: 8387 rows/s; Avg. rate: 3937 rows/s
Traceback (most recent call last):
P rocess ImportProcess-2:
File "X:Anacondalibmultiprocessingprocess.py", line 267, in _bootstrap
Traceback (most recent call last):
Process ImportProcess-1:
T raceback (most recent call last):
File "X:Anacondalibmultiprocessingprocess.py", line 267, in _bootstrap
File "X:Anacondalibmultiprocessingprocess.py", line 267, in _bootstrap
self.run()
File "X:apache-cassandra-3.11.3bin..pylibcqlshlibcopyutil.py", line 2328, in run
self.run()
self.run()
File "X:apache-cassandra-3.11.3bin..pylibcqlshlibcopyutil.py", line 2328, in run
File "X:apache-cassandra-3.11.3bin..pylibcqlshlibcopyutil.py", line 2328, in run
self.close()
File "X:apache-cassandra-3.11.3bin..pylibcqlshlibcopyutil.py", line 2332, in close
self._session.cluster.shutdown()
self.close()
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandracluster.py", line 1259, in shutdown
self.close()
File "X:apache-cassandra-3.11.3bin..pylibcqlshlibcopyutil.py", line 2332, in close
File "X:apache-cassandra-3.11.3bin..pylibcqlshlibcopyutil.py", line 2332, in close
self._session.cluster.shutdown()
self._session.cluster.shutdown()
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandracluster.py", line 1259, in shutdown
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandracluster.py", line 1259, in shutdown
self.control_connection.shutdown()
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandracluster.py", line 2850, in shutdown
self._connection.close()
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandraioasyncorereactor.py", line 373, in close
AsyncoreConnection.create_timer(0, partial(asyncore.dispatcher.close, self))
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandraioasyncorereactor.py", line 335, in create_timer
cls._loop.add_timer(timer)
A ttributeError: 'NoneType' object has no attribute 'add_timer'
self.control_connection.shutdown()
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandracluster.py", line 2850, in shutdown
self.control_connection.shutdown()
self._connection.close()
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandracluster.py", line 2850, in shutdown
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandraioasyncorereactor.py", line 373, in close
self._connection.close()
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandraioasyncorereactor.py", line 373, in close
AsyncoreConnection.create_timer(0, partial(asyncore.dispatcher.close, self))
AsyncoreConnection.create_timer(0, partial(asyncore.dispatcher.close, self))
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandraioasyncorereactor.py", line 335, in create_timer
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandraioasyncorereactor.py", line 335, in create_timer
cls._loop.add_timer(timer)
A cls._loop.add_timer(timer)
ttributeError: 'NoneType' object has no attribute 'add_timer'
AttributeError: 'NoneType' object has no attribute 'add_timer'
Processed: 49765 rows; Rate: 4193 rows/s; Avg. rate: 3906 rows/s
49765 rows imported from 1 files in 12.742 seconds (0 skipped).
Maybe its due to this error.
cassandra cql
add a comment |
I am trying to dump csv file into cassandra table using COPY command. But, number of rows in my csv file and number of rows in cassandra is not consistent.
Number of rows in CSV files : 49765 (excluding header)
Number of rows in cassandra table:
cqlsh:test_df> select Count(*) from test_table;
count
-------
46982
(1 rows)
Warnings :
Aggregation query used without partition key
copy command :
COPY test_table (column1,column2,column3) from 'temp.csv' with delimiter = ',' and header = True;
Error:
Starting copy of test_df.test_bhavcopy with columns [symbol, instrument, expiry_dt, strike_pr, option_typ, open, high, low, close, settle_pr, contracts, val_inlakh, open_int, ch_in_oi, price_date, key].
Process ImportProcess-3:ate: 8387 rows/s; Avg. rate: 3937 rows/s
Traceback (most recent call last):
P rocess ImportProcess-2:
File "X:Anacondalibmultiprocessingprocess.py", line 267, in _bootstrap
Traceback (most recent call last):
Process ImportProcess-1:
T raceback (most recent call last):
File "X:Anacondalibmultiprocessingprocess.py", line 267, in _bootstrap
File "X:Anacondalibmultiprocessingprocess.py", line 267, in _bootstrap
self.run()
File "X:apache-cassandra-3.11.3bin..pylibcqlshlibcopyutil.py", line 2328, in run
self.run()
self.run()
File "X:apache-cassandra-3.11.3bin..pylibcqlshlibcopyutil.py", line 2328, in run
File "X:apache-cassandra-3.11.3bin..pylibcqlshlibcopyutil.py", line 2328, in run
self.close()
File "X:apache-cassandra-3.11.3bin..pylibcqlshlibcopyutil.py", line 2332, in close
self._session.cluster.shutdown()
self.close()
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandracluster.py", line 1259, in shutdown
self.close()
File "X:apache-cassandra-3.11.3bin..pylibcqlshlibcopyutil.py", line 2332, in close
File "X:apache-cassandra-3.11.3bin..pylibcqlshlibcopyutil.py", line 2332, in close
self._session.cluster.shutdown()
self._session.cluster.shutdown()
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandracluster.py", line 1259, in shutdown
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandracluster.py", line 1259, in shutdown
self.control_connection.shutdown()
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandracluster.py", line 2850, in shutdown
self._connection.close()
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandraioasyncorereactor.py", line 373, in close
AsyncoreConnection.create_timer(0, partial(asyncore.dispatcher.close, self))
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandraioasyncorereactor.py", line 335, in create_timer
cls._loop.add_timer(timer)
A ttributeError: 'NoneType' object has no attribute 'add_timer'
self.control_connection.shutdown()
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandracluster.py", line 2850, in shutdown
self.control_connection.shutdown()
self._connection.close()
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandracluster.py", line 2850, in shutdown
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandraioasyncorereactor.py", line 373, in close
self._connection.close()
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandraioasyncorereactor.py", line 373, in close
AsyncoreConnection.create_timer(0, partial(asyncore.dispatcher.close, self))
AsyncoreConnection.create_timer(0, partial(asyncore.dispatcher.close, self))
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandraioasyncorereactor.py", line 335, in create_timer
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandraioasyncorereactor.py", line 335, in create_timer
cls._loop.add_timer(timer)
A cls._loop.add_timer(timer)
ttributeError: 'NoneType' object has no attribute 'add_timer'
AttributeError: 'NoneType' object has no attribute 'add_timer'
Processed: 49765 rows; Rate: 4193 rows/s; Avg. rate: 3906 rows/s
49765 rows imported from 1 files in 12.742 seconds (0 skipped).
Maybe its due to this error.
cassandra cql
1
your primary key definition may lead to overwriting some of the rows...
– Alex Ott
Nov 19 '18 at 10:11
i did some googling, and it seems like some cassandra-driver issue AttributeError: 'NoneType' object has no attribute 'add_timer' but not really sure how to fix this
– Krishna Kumar
Nov 19 '18 at 11:52
what version of Python do you have? cqlsh works only with 2.x
– Alex Ott
Nov 19 '18 at 12:44
yes i am using python 2.7
– Krishna Kumar
Nov 20 '18 at 4:17
@AlexOtt yes you are correct, thanks
– Krishna Kumar
Nov 20 '18 at 13:13
add a comment |
I am trying to dump csv file into cassandra table using COPY command. But, number of rows in my csv file and number of rows in cassandra is not consistent.
Number of rows in CSV files : 49765 (excluding header)
Number of rows in cassandra table:
cqlsh:test_df> select Count(*) from test_table;
count
-------
46982
(1 rows)
Warnings :
Aggregation query used without partition key
copy command :
COPY test_table (column1,column2,column3) from 'temp.csv' with delimiter = ',' and header = True;
Error:
Starting copy of test_df.test_bhavcopy with columns [symbol, instrument, expiry_dt, strike_pr, option_typ, open, high, low, close, settle_pr, contracts, val_inlakh, open_int, ch_in_oi, price_date, key].
Process ImportProcess-3:ate: 8387 rows/s; Avg. rate: 3937 rows/s
Traceback (most recent call last):
P rocess ImportProcess-2:
File "X:Anacondalibmultiprocessingprocess.py", line 267, in _bootstrap
Traceback (most recent call last):
Process ImportProcess-1:
T raceback (most recent call last):
File "X:Anacondalibmultiprocessingprocess.py", line 267, in _bootstrap
File "X:Anacondalibmultiprocessingprocess.py", line 267, in _bootstrap
self.run()
File "X:apache-cassandra-3.11.3bin..pylibcqlshlibcopyutil.py", line 2328, in run
self.run()
self.run()
File "X:apache-cassandra-3.11.3bin..pylibcqlshlibcopyutil.py", line 2328, in run
File "X:apache-cassandra-3.11.3bin..pylibcqlshlibcopyutil.py", line 2328, in run
self.close()
File "X:apache-cassandra-3.11.3bin..pylibcqlshlibcopyutil.py", line 2332, in close
self._session.cluster.shutdown()
self.close()
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandracluster.py", line 1259, in shutdown
self.close()
File "X:apache-cassandra-3.11.3bin..pylibcqlshlibcopyutil.py", line 2332, in close
File "X:apache-cassandra-3.11.3bin..pylibcqlshlibcopyutil.py", line 2332, in close
self._session.cluster.shutdown()
self._session.cluster.shutdown()
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandracluster.py", line 1259, in shutdown
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandracluster.py", line 1259, in shutdown
self.control_connection.shutdown()
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandracluster.py", line 2850, in shutdown
self._connection.close()
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandraioasyncorereactor.py", line 373, in close
AsyncoreConnection.create_timer(0, partial(asyncore.dispatcher.close, self))
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandraioasyncorereactor.py", line 335, in create_timer
cls._loop.add_timer(timer)
A ttributeError: 'NoneType' object has no attribute 'add_timer'
self.control_connection.shutdown()
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandracluster.py", line 2850, in shutdown
self.control_connection.shutdown()
self._connection.close()
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandracluster.py", line 2850, in shutdown
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandraioasyncorereactor.py", line 373, in close
self._connection.close()
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandraioasyncorereactor.py", line 373, in close
AsyncoreConnection.create_timer(0, partial(asyncore.dispatcher.close, self))
AsyncoreConnection.create_timer(0, partial(asyncore.dispatcher.close, self))
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandraioasyncorereactor.py", line 335, in create_timer
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandraioasyncorereactor.py", line 335, in create_timer
cls._loop.add_timer(timer)
A cls._loop.add_timer(timer)
ttributeError: 'NoneType' object has no attribute 'add_timer'
AttributeError: 'NoneType' object has no attribute 'add_timer'
Processed: 49765 rows; Rate: 4193 rows/s; Avg. rate: 3906 rows/s
49765 rows imported from 1 files in 12.742 seconds (0 skipped).
Maybe its due to this error.
cassandra cql
I am trying to dump csv file into cassandra table using COPY command. But, number of rows in my csv file and number of rows in cassandra is not consistent.
Number of rows in CSV files : 49765 (excluding header)
Number of rows in cassandra table:
cqlsh:test_df> select Count(*) from test_table;
count
-------
46982
(1 rows)
Warnings :
Aggregation query used without partition key
copy command :
COPY test_table (column1,column2,column3) from 'temp.csv' with delimiter = ',' and header = True;
Error:
Starting copy of test_df.test_bhavcopy with columns [symbol, instrument, expiry_dt, strike_pr, option_typ, open, high, low, close, settle_pr, contracts, val_inlakh, open_int, ch_in_oi, price_date, key].
Process ImportProcess-3:ate: 8387 rows/s; Avg. rate: 3937 rows/s
Traceback (most recent call last):
P rocess ImportProcess-2:
File "X:Anacondalibmultiprocessingprocess.py", line 267, in _bootstrap
Traceback (most recent call last):
Process ImportProcess-1:
T raceback (most recent call last):
File "X:Anacondalibmultiprocessingprocess.py", line 267, in _bootstrap
File "X:Anacondalibmultiprocessingprocess.py", line 267, in _bootstrap
self.run()
File "X:apache-cassandra-3.11.3bin..pylibcqlshlibcopyutil.py", line 2328, in run
self.run()
self.run()
File "X:apache-cassandra-3.11.3bin..pylibcqlshlibcopyutil.py", line 2328, in run
File "X:apache-cassandra-3.11.3bin..pylibcqlshlibcopyutil.py", line 2328, in run
self.close()
File "X:apache-cassandra-3.11.3bin..pylibcqlshlibcopyutil.py", line 2332, in close
self._session.cluster.shutdown()
self.close()
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandracluster.py", line 1259, in shutdown
self.close()
File "X:apache-cassandra-3.11.3bin..pylibcqlshlibcopyutil.py", line 2332, in close
File "X:apache-cassandra-3.11.3bin..pylibcqlshlibcopyutil.py", line 2332, in close
self._session.cluster.shutdown()
self._session.cluster.shutdown()
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandracluster.py", line 1259, in shutdown
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandracluster.py", line 1259, in shutdown
self.control_connection.shutdown()
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandracluster.py", line 2850, in shutdown
self._connection.close()
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandraioasyncorereactor.py", line 373, in close
AsyncoreConnection.create_timer(0, partial(asyncore.dispatcher.close, self))
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandraioasyncorereactor.py", line 335, in create_timer
cls._loop.add_timer(timer)
A ttributeError: 'NoneType' object has no attribute 'add_timer'
self.control_connection.shutdown()
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandracluster.py", line 2850, in shutdown
self.control_connection.shutdown()
self._connection.close()
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandracluster.py", line 2850, in shutdown
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandraioasyncorereactor.py", line 373, in close
self._connection.close()
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandraioasyncorereactor.py", line 373, in close
AsyncoreConnection.create_timer(0, partial(asyncore.dispatcher.close, self))
AsyncoreConnection.create_timer(0, partial(asyncore.dispatcher.close, self))
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandraioasyncorereactor.py", line 335, in create_timer
File "X:apache-cassandra-3.11.3bin..libcassandra-driver-internal-only-3.11.0-bb96859b.zipcassandra-driver-3.11.0-bb96859bcassandraioasyncorereactor.py", line 335, in create_timer
cls._loop.add_timer(timer)
A cls._loop.add_timer(timer)
ttributeError: 'NoneType' object has no attribute 'add_timer'
AttributeError: 'NoneType' object has no attribute 'add_timer'
Processed: 49765 rows; Rate: 4193 rows/s; Avg. rate: 3906 rows/s
49765 rows imported from 1 files in 12.742 seconds (0 skipped).
Maybe its due to this error.
cassandra cql
cassandra cql
edited Nov 19 '18 at 9:20
Krishna Kumar
asked Nov 19 '18 at 9:02
Krishna KumarKrishna Kumar
299
299
1
your primary key definition may lead to overwriting some of the rows...
– Alex Ott
Nov 19 '18 at 10:11
i did some googling, and it seems like some cassandra-driver issue AttributeError: 'NoneType' object has no attribute 'add_timer' but not really sure how to fix this
– Krishna Kumar
Nov 19 '18 at 11:52
what version of Python do you have? cqlsh works only with 2.x
– Alex Ott
Nov 19 '18 at 12:44
yes i am using python 2.7
– Krishna Kumar
Nov 20 '18 at 4:17
@AlexOtt yes you are correct, thanks
– Krishna Kumar
Nov 20 '18 at 13:13
add a comment |
1
your primary key definition may lead to overwriting some of the rows...
– Alex Ott
Nov 19 '18 at 10:11
i did some googling, and it seems like some cassandra-driver issue AttributeError: 'NoneType' object has no attribute 'add_timer' but not really sure how to fix this
– Krishna Kumar
Nov 19 '18 at 11:52
what version of Python do you have? cqlsh works only with 2.x
– Alex Ott
Nov 19 '18 at 12:44
yes i am using python 2.7
– Krishna Kumar
Nov 20 '18 at 4:17
@AlexOtt yes you are correct, thanks
– Krishna Kumar
Nov 20 '18 at 13:13
1
1
your primary key definition may lead to overwriting some of the rows...
– Alex Ott
Nov 19 '18 at 10:11
your primary key definition may lead to overwriting some of the rows...
– Alex Ott
Nov 19 '18 at 10:11
i did some googling, and it seems like some cassandra-driver issue AttributeError: 'NoneType' object has no attribute 'add_timer' but not really sure how to fix this
– Krishna Kumar
Nov 19 '18 at 11:52
i did some googling, and it seems like some cassandra-driver issue AttributeError: 'NoneType' object has no attribute 'add_timer' but not really sure how to fix this
– Krishna Kumar
Nov 19 '18 at 11:52
what version of Python do you have? cqlsh works only with 2.x
– Alex Ott
Nov 19 '18 at 12:44
what version of Python do you have? cqlsh works only with 2.x
– Alex Ott
Nov 19 '18 at 12:44
yes i am using python 2.7
– Krishna Kumar
Nov 20 '18 at 4:17
yes i am using python 2.7
– Krishna Kumar
Nov 20 '18 at 4:17
@AlexOtt yes you are correct, thanks
– Krishna Kumar
Nov 20 '18 at 13:13
@AlexOtt yes you are correct, thanks
– Krishna Kumar
Nov 20 '18 at 13:13
add a comment |
1 Answer
1
active
oldest
votes
Found a fix :
I edited my asyncorereactor.py in
cassandra-driver-internal-only-3.11.0-bb96859b.zip/cassandra-driver-3.11.0-bb96859b/cassandra/io/asyncorereactor.py
to self.create_timer() from AsyncoreConnection.create_timer() as suggested in this post
https://datastax-oss.atlassian.net/browse/PYTHON-862?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53371273%2fmismatch-in-number-of-rows-imported-into-cassandra-table-copy-command%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Found a fix :
I edited my asyncorereactor.py in
cassandra-driver-internal-only-3.11.0-bb96859b.zip/cassandra-driver-3.11.0-bb96859b/cassandra/io/asyncorereactor.py
to self.create_timer() from AsyncoreConnection.create_timer() as suggested in this post
https://datastax-oss.atlassian.net/browse/PYTHON-862?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel
add a comment |
Found a fix :
I edited my asyncorereactor.py in
cassandra-driver-internal-only-3.11.0-bb96859b.zip/cassandra-driver-3.11.0-bb96859b/cassandra/io/asyncorereactor.py
to self.create_timer() from AsyncoreConnection.create_timer() as suggested in this post
https://datastax-oss.atlassian.net/browse/PYTHON-862?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel
add a comment |
Found a fix :
I edited my asyncorereactor.py in
cassandra-driver-internal-only-3.11.0-bb96859b.zip/cassandra-driver-3.11.0-bb96859b/cassandra/io/asyncorereactor.py
to self.create_timer() from AsyncoreConnection.create_timer() as suggested in this post
https://datastax-oss.atlassian.net/browse/PYTHON-862?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel
Found a fix :
I edited my asyncorereactor.py in
cassandra-driver-internal-only-3.11.0-bb96859b.zip/cassandra-driver-3.11.0-bb96859b/cassandra/io/asyncorereactor.py
to self.create_timer() from AsyncoreConnection.create_timer() as suggested in this post
https://datastax-oss.atlassian.net/browse/PYTHON-862?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel
answered Nov 20 '18 at 9:23
Krishna KumarKrishna Kumar
299
299
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53371273%2fmismatch-in-number-of-rows-imported-into-cassandra-table-copy-command%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
your primary key definition may lead to overwriting some of the rows...
– Alex Ott
Nov 19 '18 at 10:11
i did some googling, and it seems like some cassandra-driver issue AttributeError: 'NoneType' object has no attribute 'add_timer' but not really sure how to fix this
– Krishna Kumar
Nov 19 '18 at 11:52
what version of Python do you have? cqlsh works only with 2.x
– Alex Ott
Nov 19 '18 at 12:44
yes i am using python 2.7
– Krishna Kumar
Nov 20 '18 at 4:17
@AlexOtt yes you are correct, thanks
– Krishna Kumar
Nov 20 '18 at 13:13