[jira] [Resolved] (CASSANDRA-10255) AttributeError: 'module' object has no attribute 'compress'
[ https://issues.apache.org/jira/browse/CASSANDRA-10255?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] navithejesh resolved CASSANDRA-10255. - Resolution: Fixed > AttributeError: 'module' object has no attribute 'compress' > > > Key: CASSANDRA-10255 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10255 > Project: Cassandra > Issue Type: Bug > Components: Config, Packaging > Environment: Linux fedora 21 >Reporter: navithejesh > Labels: cqlsh > Fix For: 2.1.x > > Attachments: erroe2.jpeg, error.jpeg > > > Hi Recently i have upgrade my server from cassandra version 2.0.11 to 2.1.8 > using tarball installation.And i have added one node to existing culster with > the same version of 2.1.8. All the configuration settings are done but am not > able to run cqlsh from bin directory.and this is the error > AttributeError: 'module' object has no attribute 'compress' > {code} > ./cqlsh > Traceback (most recent call last): > File "./cqlsh", line 111, in > from cassandra.cluster import Cluster, PagedResult > File > "/home/cassandra/apache-cassandra-2.1.8/bin/../lib/cassandra-driver-internal-only-2.6.0c2.post.zip/cassandra-driver-2.6.0c2.post/cassandra/cluster.py", > line 49, in > File > "/home/cassandra/apache-cassandra-2.1.8/bin/../lib/cassandra-driver-internal-only-2.6.0c2.post.zip/cassandra-driver-2.6.0c2.post/cassandra/connection.py", > line 88, in > AttributeError: 'module' object has no attribute 'compress' > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (CASSANDRA-10255) AttributeError: 'module' object has no attribute 'compress'
[ https://issues.apache.org/jira/browse/CASSANDRA-10255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14733312#comment-14733312 ] navithejesh commented on CASSANDRA-10255: - Hi Tyler , -->I have checked the some other single node, which has output message for python -c 'import snappy; print dir(snappy); print snappy._file_' root@orange-tree:~# python -c 'import snappy; print dir(snappy);print snappy.__file__' ['CompressError', 'CompressedLengthError', 'InvalidCompressedInputError', 'UncompressError', '__doc__', '__file__', '__name__', '__package__', 'compress', 'decompress', 'isValidCompressed', 'uncompress'] /usr/lib/python2.7/dist-packages/snappy.so --> Here we see compress and uncompress modules are present. And I checked for the same in node B and it was found in "/usr/lib64/python2.7/site-packages/". I moved snappy.py from the "/usr/lib64/python2.7/site-packages/" to "/usr/lib64/python2.7/site-packages/snappy" directory (snappy installation directory). --> After that i checked python -c 'import snappy; print dir(snappy); print snappy.__file__' [root@localhost snappy]# python -c 'import snappy; print dir(snappy); print snappy.__file__' ['CompressError', 'CompressedLengthError', 'InvalidCompressedInputError', 'StreamCompressor', 'StreamDecompressor', 'UncompressError', '_CHUNK_MAX', '_COMPRESSED_CHUNK', '_COMPRESSION_THRESHOLD', '_IDENTIFIER_CHUNK', '_RESERVED_SKIPPABLE', '_RESERVED_UNSKIPPABLE', '_STREAM_IDENTIFIER', '_STREAM_TO_STREAM_BLOCK_SIZE', '_UNCOMPRESSED_CHUNK', '__builtins__', '__doc__', '__file__', '__name__', '__package__', '_compress', '_crc32c', '_masked_crc32c', '_uncompress', 'cmdline_main', 'compress', 'decompress', 'isValidCompressed', 'stream_compress', 'stream_decompress', 'struct', 'uncompress'] snappy.pyc --> we found the compress and related modules all being present. --> Then i ran ./cqlsh and it ran sucessfully.No More Errors Thanks for your support > AttributeError: 'module' object has no attribute 'compress' > > > Key: CASSANDRA-10255 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10255 > Project: Cassandra > Issue Type: Bug > Components: Config, Packaging > Environment: Linux fedora 21 >Reporter: navithejesh > Labels: cqlsh > Fix For: 2.1.x > > Attachments: erroe2.jpeg, error.jpeg > > > Hi Recently i have upgrade my server from cassandra version 2.0.11 to 2.1.8 > using tarball installation.And i have added one node to existing culster with > the same version of 2.1.8. All the configuration settings are done but am not > able to run cqlsh from bin directory.and this is the error > AttributeError: 'module' object has no attribute 'compress' > {code} > ./cqlsh > Traceback (most recent call last): > File "./cqlsh", line 111, in > from cassandra.cluster import Cluster, PagedResult > File > "/home/cassandra/apache-cassandra-2.1.8/bin/../lib/cassandra-driver-internal-only-2.6.0c2.post.zip/cassandra-driver-2.6.0c2.post/cassandra/cluster.py", > line 49, in > File > "/home/cassandra/apache-cassandra-2.1.8/bin/../lib/cassandra-driver-internal-only-2.6.0c2.post.zip/cassandra-driver-2.6.0c2.post/cassandra/connection.py", > line 88, in > AttributeError: 'module' object has no attribute 'compress' > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (CASSANDRA-10255) AttributeError: 'module' object has no attribute 'compress'
[ https://issues.apache.org/jira/browse/CASSANDRA-10255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14733263#comment-14733263 ] navithejesh commented on CASSANDRA-10255: - Hi tyler , There is point to be noted. --> In node A there is no snappy and cqlsh is running. --> In node B, it is asking for snappy.compress to run cqlsh > AttributeError: 'module' object has no attribute 'compress' > > > Key: CASSANDRA-10255 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10255 > Project: Cassandra > Issue Type: Bug > Components: Config, Packaging > Environment: Linux fedora 21 >Reporter: navithejesh > Labels: cqlsh > Fix For: 2.1.x > > Attachments: erroe2.jpeg, error.jpeg > > > Hi Recently i have upgrade my server from cassandra version 2.0.11 to 2.1.8 > using tarball installation.And i have added one node to existing culster with > the same version of 2.1.8. All the configuration settings are done but am not > able to run cqlsh from bin directory.and this is the error > AttributeError: 'module' object has no attribute 'compress' > {code} > ./cqlsh > Traceback (most recent call last): > File "./cqlsh", line 111, in > from cassandra.cluster import Cluster, PagedResult > File > "/home/cassandra/apache-cassandra-2.1.8/bin/../lib/cassandra-driver-internal-only-2.6.0c2.post.zip/cassandra-driver-2.6.0c2.post/cassandra/cluster.py", > line 49, in > File > "/home/cassandra/apache-cassandra-2.1.8/bin/../lib/cassandra-driver-internal-only-2.6.0c2.post.zip/cassandra-driver-2.6.0c2.post/cassandra/connection.py", > line 88, in > AttributeError: 'module' object has no attribute 'compress' > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (CASSANDRA-10255) AttributeError: 'module' object has no attribute 'compress'
[ https://issues.apache.org/jira/browse/CASSANDRA-10255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14733233#comment-14733233 ] navithejesh commented on CASSANDRA-10255: - -->After you installed python-snappy on node B, did the error remain the same? Yes the error remain same even after installing snappy using pip. -->Did you install snappy with pip? yes. -->If so, were there any errors during the installation? Yes,There was an error while installing snappy. [root@localhost bin]# pip install python-snappy Collecting python-snappy Using cached python-snappy-0.5.tar.gz Installing collected packages: python-snappy Running setup.py install for python-snappy Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-5yOKl1/python-snappy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-moLktZ-record/install-record.txt --single-version-externally-managed --compile: running install running build running build_py creating build creating build/lib.linux-x86_64-2.7 copying snappy.py -> build/lib.linux-x86_64-2.7 running build_ext building '_snappy' extension creating build/temp.linux-x86_64-2.7 gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c snappymodule.cc -o build/temp.linux-x86_64-2.7/snappymodule.o snappymodule.cc:31:22: fatal error: snappy-c.h: No such file or directory #include ^ compilation terminated. error: command 'gcc' failed with exit status 1 --> Then i installed snappy-master manually and after that i didn't get any errors while installing python-snappy. -->Can you run the following and paste the results? python -c 'import snappy; print dir(snappy); print snappy.__file__' ? This was the message shown by python -c 'import snappy; print dir(snappy); print snappy.__file__' [root@localhost bin]# python -c 'import snappy; print dir(snappy); print snappy.__file__' ['AbelianGroup', 'AlternatingKnotExteriors', 'CensusKnots', 'Crossing', 'CuspNeighborhood', 'CuspNeighborhoodHP', 'CyOpenGL', 'DTcodec', 'DirichletDomain', 'DirichletDomainHP', 'FXrays', 'FundamentalGroup', 'HTLinkExteriors', 'HolonomyGroup', 'HolonomyGroupHP', 'IdentityBraid', 'InfinityTangle', 'Link', 'LinkExteriors', 'Manifold', 'ManifoldHP', 'NonalternatingKnotExteriors', 'NonorientableClosedCensus', 'NonorientableCuspedCensus', 'OrientableClosedCensus', 'OrientableCuspedCensus', 'RationalTangle', 'SnapPeaFatalError', 'SnapPy', 'SnapPyHP', 'SnapPy_doc', 'Strand', 'SymmetryGroup', 'Tangle', 'Triangulation', 'TriangulationHP', 'ZeroTangle', '_ManifoldHP', '_ManifoldLP', '_TriangulationHP', '_TriangulationLP', '__all__', '__builtins__', '__doc__', '__file__', '__name__', '__package__', '__path__', '__version__', '_link_exterior', '_within_sage', 'app_menus', 'browser', 'canonical_retriangulation', 'database', 'database_objects', 'db_utilities', 'filedialog', 'horoviewer', 'infodialog', 'isometry_signature', 'link_objects', 'manifolds', 'method', 'mfld_class', 'number', 'pari', 'polyviewer', 'ptolemy', 'release_info', 'sage_helper', 'snap', 'snappy', 'theme', 'twister', 'verify', 'version'] /usr/lib64/python2.7/site-packages/snappy/__init__.pyc > AttributeError: 'module' object has no attribute 'compress' > > > Key: CASSANDRA-10255 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10255 > Project: Cassandra > Issue Type: Bug > Components: Config, Packaging > Environment: Linux fedora 21 >Reporter: navithejesh > Labels: cqlsh > Fix For: 2.1.x > > Attachments: erroe2.jpeg, error.jpeg > > > Hi Recently i have upgrade my server from cassandra version 2.0.11 to 2.1.8 > using tarball installation.And i have added one node to existing culster with > the same version of 2.1.8. All the configuration settings are done but am not > able to run cqlsh from bin directory.and this is the error > AttributeError: 'module' object has no attribute 'compress' > {code} > ./cqlsh > Traceback (most recent call last): > File "./cqlsh", line 111, in > from cassandra.cluster import Cluster, PagedResult > File > "/home/cassandra/apache-cassandra-2.1.8/bin/../lib/cassandra-driver-internal-on
[jira] [Issue Comment Deleted] (CASSANDRA-10255) AttributeError: 'module' object has no attribute 'compress'
[ https://issues.apache.org/jira/browse/CASSANDRA-10255?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] navithejesh updated CASSANDRA-10255: Comment: was deleted (was: This is the nodetool status of two nodes A and B.) > AttributeError: 'module' object has no attribute 'compress' > > > Key: CASSANDRA-10255 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10255 > Project: Cassandra > Issue Type: Bug > Components: Config, Packaging > Environment: Linux fedora 21 >Reporter: navithejesh > Labels: cqlsh > Fix For: 2.1.x > > Attachments: erroe2.jpeg, error.jpeg > > > Hi Recently i have upgrade my server from cassandra version 2.0.11 to 2.1.8 > using tarball installation.And i have added one node to existing culster with > the same version of 2.1.8. All the configuration settings are done but am not > able to run cqlsh from bin directory.and this is the error > AttributeError: 'module' object has no attribute 'compress' > {code} > ./cqlsh > Traceback (most recent call last): > File "./cqlsh", line 111, in > from cassandra.cluster import Cluster, PagedResult > File > "/home/cassandra/apache-cassandra-2.1.8/bin/../lib/cassandra-driver-internal-only-2.6.0c2.post.zip/cassandra-driver-2.6.0c2.post/cassandra/cluster.py", > line 49, in > File > "/home/cassandra/apache-cassandra-2.1.8/bin/../lib/cassandra-driver-internal-only-2.6.0c2.post.zip/cassandra-driver-2.6.0c2.post/cassandra/connection.py", > line 88, in > AttributeError: 'module' object has no attribute 'compress' > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Issue Comment Deleted] (CASSANDRA-10255) AttributeError: 'module' object has no attribute 'compress'
[ https://issues.apache.org/jira/browse/CASSANDRA-10255?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] navithejesh updated CASSANDRA-10255: Comment: was deleted (was: This is the nodetool status of two nodes) > AttributeError: 'module' object has no attribute 'compress' > > > Key: CASSANDRA-10255 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10255 > Project: Cassandra > Issue Type: Bug > Components: Config, Packaging > Environment: Linux fedora 21 >Reporter: navithejesh > Labels: cqlsh > Fix For: 2.1.x > > Attachments: erroe2.jpeg, error.jpeg > > > Hi Recently i have upgrade my server from cassandra version 2.0.11 to 2.1.8 > using tarball installation.And i have added one node to existing culster with > the same version of 2.1.8. All the configuration settings are done but am not > able to run cqlsh from bin directory.and this is the error > AttributeError: 'module' object has no attribute 'compress' > {code} > ./cqlsh > Traceback (most recent call last): > File "./cqlsh", line 111, in > from cassandra.cluster import Cluster, PagedResult > File > "/home/cassandra/apache-cassandra-2.1.8/bin/../lib/cassandra-driver-internal-only-2.6.0c2.post.zip/cassandra-driver-2.6.0c2.post/cassandra/cluster.py", > line 49, in > File > "/home/cassandra/apache-cassandra-2.1.8/bin/../lib/cassandra-driver-internal-only-2.6.0c2.post.zip/cassandra-driver-2.6.0c2.post/cassandra/connection.py", > line 88, in > AttributeError: 'module' object has no attribute 'compress' > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (CASSANDRA-10255) AttributeError: 'module' object has no attribute 'compress'
[ https://issues.apache.org/jira/browse/CASSANDRA-10255?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] navithejesh updated CASSANDRA-10255: Attachment: erroe2.jpeg This is the nodetool status of two nodes A and B. > AttributeError: 'module' object has no attribute 'compress' > > > Key: CASSANDRA-10255 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10255 > Project: Cassandra > Issue Type: Bug > Components: Config, Packaging > Environment: Linux fedora 21 >Reporter: navithejesh > Labels: cqlsh > Fix For: 2.1.x > > Attachments: erroe2.jpeg, error.jpeg > > > Hi Recently i have upgrade my server from cassandra version 2.0.11 to 2.1.8 > using tarball installation.And i have added one node to existing culster with > the same version of 2.1.8. All the configuration settings are done but am not > able to run cqlsh from bin directory.and this is the error > AttributeError: 'module' object has no attribute 'compress' > {code} > ./cqlsh > Traceback (most recent call last): > File "./cqlsh", line 111, in > from cassandra.cluster import Cluster, PagedResult > File > "/home/cassandra/apache-cassandra-2.1.8/bin/../lib/cassandra-driver-internal-only-2.6.0c2.post.zip/cassandra-driver-2.6.0c2.post/cassandra/cluster.py", > line 49, in > File > "/home/cassandra/apache-cassandra-2.1.8/bin/../lib/cassandra-driver-internal-only-2.6.0c2.post.zip/cassandra-driver-2.6.0c2.post/cassandra/connection.py", > line 88, in > AttributeError: 'module' object has no attribute 'compress' > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (CASSANDRA-10255) AttributeError: 'module' object has no attribute 'compress'
[ https://issues.apache.org/jira/browse/CASSANDRA-10255?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] navithejesh updated CASSANDRA-10255: Attachment: (was: erroe2.xcf) > AttributeError: 'module' object has no attribute 'compress' > > > Key: CASSANDRA-10255 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10255 > Project: Cassandra > Issue Type: Bug > Components: Config, Packaging > Environment: Linux fedora 21 >Reporter: navithejesh > Labels: cqlsh > Fix For: 2.1.x > > Attachments: error.jpeg > > > Hi Recently i have upgrade my server from cassandra version 2.0.11 to 2.1.8 > using tarball installation.And i have added one node to existing culster with > the same version of 2.1.8. All the configuration settings are done but am not > able to run cqlsh from bin directory.and this is the error > AttributeError: 'module' object has no attribute 'compress' > {code} > ./cqlsh > Traceback (most recent call last): > File "./cqlsh", line 111, in > from cassandra.cluster import Cluster, PagedResult > File > "/home/cassandra/apache-cassandra-2.1.8/bin/../lib/cassandra-driver-internal-only-2.6.0c2.post.zip/cassandra-driver-2.6.0c2.post/cassandra/cluster.py", > line 49, in > File > "/home/cassandra/apache-cassandra-2.1.8/bin/../lib/cassandra-driver-internal-only-2.6.0c2.post.zip/cassandra-driver-2.6.0c2.post/cassandra/connection.py", > line 88, in > AttributeError: 'module' object has no attribute 'compress' > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Comment Edited] (CASSANDRA-10255) AttributeError: 'module' object has no attribute 'compress'
[ https://issues.apache.org/jira/browse/CASSANDRA-10255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14730376#comment-14730376 ] navithejesh edited comment on CASSANDRA-10255 at 9/4/15 6:27 AM: - Hi Tyler, Firstly i would like to thank you for reply.. In our set-up there are two systems A and B --> Initially, A was the single node previously, having data of 167.44GB and recently upgraded from Apache Cassandra 2.0.11 to 2.1.8 --> B is the new node with Apache Cassandra 2.1.8 --> we made two machines up and created cluster between A and B. All the data is shared and when i run ./nodetool status in node A it is showing A is having 167.44 GB of data and node B is showing 553.77GB. --> In node A we installed lz4 and python-snappy before loading data and in node B we didn't. --> when i run ./cqlsh on node B, am not able to run it and its throwing an error like AttributeError: 'module' object has no attribute 'compress' --> Later i understood that i haven't installed lz4 and python-snappy in node B. --> Now i installed and lz4 and python-snappy libraries and started Cassandra service in node B.But still it shows the same error. --> And also we find differences in data sizes in both, the node A (167.44GB which is seed node) and node B (553.77GB ) we don't understand the reason behind this. --> Check the attachment error2.xcf was (Author: navithejesh): Hi Tyler, Firstly i would like to thank you for reply.. In our set-up there are two systems A and B --> Initially, A was the single node previously, having data of 167.44GB and recently upgraded from Apache Cassandra 2.0.11 to 2.1.8 --> B is the new node with Apache Cassandra 2.1.8 --> we made two machines up and created cluster between A and B. All the data is shared and when i run ./nodetool status in node A it is showing A is having 167.44 GB of data and node B is showing 553.77GB. --> In node A we installed lz4 and python-snappy before loading data and in node B we didn't. --> when i run ./cqlsh on node B, am not able to run it and its throwing an error like AttributeError: 'module' object has no attribute 'compress' --> Later i understood that i haven't installed lz4 and python-snappy in node B. --> Now i installed and lz4 and python-snappy libraries and started Cassandra service in node B.But still it shows the same error. --> And also we find differences in data sizes in both, the node A (167.44GB which is seed node) and node B (553.77GB ) we don't understand the reason behind this. > AttributeError: 'module' object has no attribute 'compress' > > > Key: CASSANDRA-10255 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10255 > Project: Cassandra > Issue Type: Bug > Components: Config, Packaging > Environment: Linux fedora 21 >Reporter: navithejesh > Labels: cqlsh > Fix For: 2.1.x > > Attachments: erroe2.xcf, error.jpeg > > > Hi Recently i have upgrade my server from cassandra version 2.0.11 to 2.1.8 > using tarball installation.And i have added one node to existing culster with > the same version of 2.1.8. All the configuration settings are done but am not > able to run cqlsh from bin directory.and this is the error > AttributeError: 'module' object has no attribute 'compress' > {code} > ./cqlsh > Traceback (most recent call last): > File "./cqlsh", line 111, in > from cassandra.cluster import Cluster, PagedResult > File > "/home/cassandra/apache-cassandra-2.1.8/bin/../lib/cassandra-driver-internal-only-2.6.0c2.post.zip/cassandra-driver-2.6.0c2.post/cassandra/cluster.py", > line 49, in > File > "/home/cassandra/apache-cassandra-2.1.8/bin/../lib/cassandra-driver-internal-only-2.6.0c2.post.zip/cassandra-driver-2.6.0c2.post/cassandra/connection.py", > line 88, in > AttributeError: 'module' object has no attribute 'compress' > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (CASSANDRA-10255) AttributeError: 'module' object has no attribute 'compress'
[ https://issues.apache.org/jira/browse/CASSANDRA-10255?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] navithejesh updated CASSANDRA-10255: Attachment: erroe2.xcf This is the nodetool status of two nodes > AttributeError: 'module' object has no attribute 'compress' > > > Key: CASSANDRA-10255 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10255 > Project: Cassandra > Issue Type: Bug > Components: Config, Packaging > Environment: Linux fedora 21 >Reporter: navithejesh > Labels: cqlsh > Fix For: 2.1.x > > Attachments: erroe2.xcf, error.jpeg > > > Hi Recently i have upgrade my server from cassandra version 2.0.11 to 2.1.8 > using tarball installation.And i have added one node to existing culster with > the same version of 2.1.8. All the configuration settings are done but am not > able to run cqlsh from bin directory.and this is the error > AttributeError: 'module' object has no attribute 'compress' > {code} > ./cqlsh > Traceback (most recent call last): > File "./cqlsh", line 111, in > from cassandra.cluster import Cluster, PagedResult > File > "/home/cassandra/apache-cassandra-2.1.8/bin/../lib/cassandra-driver-internal-only-2.6.0c2.post.zip/cassandra-driver-2.6.0c2.post/cassandra/cluster.py", > line 49, in > File > "/home/cassandra/apache-cassandra-2.1.8/bin/../lib/cassandra-driver-internal-only-2.6.0c2.post.zip/cassandra-driver-2.6.0c2.post/cassandra/connection.py", > line 88, in > AttributeError: 'module' object has no attribute 'compress' > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (CASSANDRA-10255) AttributeError: 'module' object has no attribute 'compress'
[ https://issues.apache.org/jira/browse/CASSANDRA-10255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14730376#comment-14730376 ] navithejesh commented on CASSANDRA-10255: - Hi Tyler, Firstly i would like to thank you for reply.. In our set-up there are two systems A and B --> Initially, A was the single node previously, having data of 167.44GB and recently upgraded from Apache Cassandra 2.0.11 to 2.1.8 --> B is the new node with Apache Cassandra 2.1.8 --> we made two machines up and created cluster between A and B. All the data is shared and when i run ./nodetool status in node A it is showing A is having 167.44 GB of data and node B is showing 553.77GB. --> In node A we installed lz4 and python-snappy before loading data and in node B we didn't. --> when i run ./cqlsh on node B, am not able to run it and its throwing an error like AttributeError: 'module' object has no attribute 'compress' --> Later i understood that i haven't installed lz4 and python-snappy in node B. --> Now i installed and lz4 and python-snappy libraries and started Cassandra service in node B.But still it shows the same error. --> And also we find differences in data sizes in both, the node A (167.44GB which is seed node) and node B (553.77GB ) we don't understand the reason behind this. > AttributeError: 'module' object has no attribute 'compress' > > > Key: CASSANDRA-10255 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10255 > Project: Cassandra > Issue Type: Bug > Components: Config, Packaging > Environment: Linux fedora 21 >Reporter: navithejesh > Labels: cqlsh > Fix For: 2.1.x > > Attachments: error.jpeg > > > Hi Recently i have upgrade my server from cassandra version 2.0.11 to 2.1.8 > using tarball installation.And i have added one node to existing culster with > the same version of 2.1.8. All the configuration settings are done but am not > able to run cqlsh from bin directory.and this is the error > AttributeError: 'module' object has no attribute 'compress' > {code} > ./cqlsh > Traceback (most recent call last): > File "./cqlsh", line 111, in > from cassandra.cluster import Cluster, PagedResult > File > "/home/cassandra/apache-cassandra-2.1.8/bin/../lib/cassandra-driver-internal-only-2.6.0c2.post.zip/cassandra-driver-2.6.0c2.post/cassandra/cluster.py", > line 49, in > File > "/home/cassandra/apache-cassandra-2.1.8/bin/../lib/cassandra-driver-internal-only-2.6.0c2.post.zip/cassandra-driver-2.6.0c2.post/cassandra/connection.py", > line 88, in > AttributeError: 'module' object has no attribute 'compress' > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (CASSANDRA-10255) Not able to run cqlsh
[ https://issues.apache.org/jira/browse/CASSANDRA-10255?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] navithejesh updated CASSANDRA-10255: Description: Hi Recently i have upgrade my server from cassandra version 2.0.11 to 2.1.8 using tarball installation.And i have added one node to existing culster with the same version of 2.1.8. All the configuration settings are done but am not able to run cqlsh from bin directory.and this is the error AttributeError: 'module' object has no attribute 'compress' ./cqlsh Traceback (most recent call last): File "./cqlsh", line 111, in from cassandra.cluster import Cluster, PagedResult File "/home/cassandra/apache-cassandra-2.1.8/bin/../lib/cassandra-driver-internal-only-2.6.0c2.post.zip/cassandra-driver-2.6.0c2.post/cassandra/cluster.py", line 49, in File "/home/cassandra/apache-cassandra-2.1.8/bin/../lib/cassandra-driver-internal-only-2.6.0c2.post.zip/cassandra-driver-2.6.0c2.post/cassandra/connection.py", line 88, in AttributeError: 'module' object has no attribute 'compress' was: Hi Recently i have upgrade my server from cassandra version 2.0.11 to 2.1.8 using tarball installation.And i have added one node to existing culster with the same version of 2.1.8. All the configuration settings are done but am not able to run cqlsh from bin directory. ./cqlsh Traceback (most recent call last): File "./cqlsh", line 111, in from cassandra.cluster import Cluster, PagedResult File "/home/cassandra/apache-cassandra-2.1.8/bin/../lib/cassandra-driver-internal-only-2.6.0c2.post.zip/cassandra-driver-2.6.0c2.post/cassandra/cluster.py", line 49, in File "/home/cassandra/apache-cassandra-2.1.8/bin/../lib/cassandra-driver-internal-only-2.6.0c2.post.zip/cassandra-driver-2.6.0c2.post/cassandra/connection.py", line 88, in AttributeError: 'module' object has no attribute 'compress' > Not able to run cqlsh > -- > > Key: CASSANDRA-10255 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10255 > Project: Cassandra > Issue Type: Bug > Components: Config, Packaging > Environment: Linux fedora 21 >Reporter: navithejesh >Priority: Critical > Labels: newbie > Fix For: 2.1.x > > Attachments: error.jpeg > > > Hi Recently i have upgrade my server from cassandra version 2.0.11 to 2.1.8 > using tarball installation.And i have added one node to existing culster with > the same version of 2.1.8. All the configuration settings are done but am not > able to run cqlsh from bin directory.and this is the error > AttributeError: 'module' object has no attribute 'compress' > ./cqlsh > Traceback (most recent call last): > File "./cqlsh", line 111, in > from cassandra.cluster import Cluster, PagedResult > File > "/home/cassandra/apache-cassandra-2.1.8/bin/../lib/cassandra-driver-internal-only-2.6.0c2.post.zip/cassandra-driver-2.6.0c2.post/cassandra/cluster.py", > line 49, in > File > "/home/cassandra/apache-cassandra-2.1.8/bin/../lib/cassandra-driver-internal-only-2.6.0c2.post.zip/cassandra-driver-2.6.0c2.post/cassandra/connection.py", > line 88, in > AttributeError: 'module' object has no attribute 'compress' -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (CASSANDRA-10255) AttributeError: 'module' object has no attribute 'compress'
[ https://issues.apache.org/jira/browse/CASSANDRA-10255?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] navithejesh updated CASSANDRA-10255: Summary: AttributeError: 'module' object has no attribute 'compress' (was: Not able to run cqlsh ) > AttributeError: 'module' object has no attribute 'compress' > > > Key: CASSANDRA-10255 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10255 > Project: Cassandra > Issue Type: Bug > Components: Config, Packaging > Environment: Linux fedora 21 >Reporter: navithejesh >Priority: Critical > Labels: newbie > Fix For: 2.1.x > > Attachments: error.jpeg > > > Hi Recently i have upgrade my server from cassandra version 2.0.11 to 2.1.8 > using tarball installation.And i have added one node to existing culster with > the same version of 2.1.8. All the configuration settings are done but am not > able to run cqlsh from bin directory.and this is the error > AttributeError: 'module' object has no attribute 'compress' > ./cqlsh > Traceback (most recent call last): > File "./cqlsh", line 111, in > from cassandra.cluster import Cluster, PagedResult > File > "/home/cassandra/apache-cassandra-2.1.8/bin/../lib/cassandra-driver-internal-only-2.6.0c2.post.zip/cassandra-driver-2.6.0c2.post/cassandra/cluster.py", > line 49, in > File > "/home/cassandra/apache-cassandra-2.1.8/bin/../lib/cassandra-driver-internal-only-2.6.0c2.post.zip/cassandra-driver-2.6.0c2.post/cassandra/connection.py", > line 88, in > AttributeError: 'module' object has no attribute 'compress' -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (CASSANDRA-10255) Not able to run cqlsh
navithejesh created CASSANDRA-10255: --- Summary: Not able to run cqlsh Key: CASSANDRA-10255 URL: https://issues.apache.org/jira/browse/CASSANDRA-10255 Project: Cassandra Issue Type: Bug Components: Config, Packaging Environment: Linux fedora 21 Reporter: navithejesh Priority: Critical Fix For: 2.1.x Attachments: error.jpeg Hi Recently i have upgrade my server from cassandra version 2.0.11 to 2.1.8 using tarball installation.And i have added one node to existing culster with the same version of 2.1.8. All the configuration settings are done but am not able to run cqlsh from bin directory. ./cqlsh Traceback (most recent call last): File "./cqlsh", line 111, in from cassandra.cluster import Cluster, PagedResult File "/home/cassandra/apache-cassandra-2.1.8/bin/../lib/cassandra-driver-internal-only-2.6.0c2.post.zip/cassandra-driver-2.6.0c2.post/cassandra/cluster.py", line 49, in File "/home/cassandra/apache-cassandra-2.1.8/bin/../lib/cassandra-driver-internal-only-2.6.0c2.post.zip/cassandra-driver-2.6.0c2.post/cassandra/connection.py", line 88, in AttributeError: 'module' object has no attribute 'compress' -- This message was sent by Atlassian JIRA (v6.3.4#6332)