[ https://issues.apache.org/jira/browse/CASSANDRA-6162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13879994#comment-13879994 ]
Andreas Petter edited comment on CASSANDRA-6162 at 1/23/14 3:49 PM: -------------------------------------------------------------------- confirmed, this is the case for German version, too. Installed 2.0.4 directly from the deb-package from the Apache site. The problem lies in line 22 of cassandra-env.sh, in the awk expression which expects the result of free -m to contain "Mem:" which is not the case for localized ubuntu versions. Maybe this can be fixed (at least it works for german localization, but is generic enough to work for others, too) by searching for ":" only and returning only the first line with grep, i.e.: system_memory_in_mb=`free -m | awk '/:/ {print $2}' | grep -i "" --max-count=1` However, i'm not a shell scripter and so this must be tested elsewhere, too. Sergey, can you test it for the russian version, please? was (Author: andreas.petter): confirmed, this is the case for German version, too. Installed 2.0.4 directly from the deb-package from the Apache site. The problem lies in line 22 of cassandra-env.sh, in the awk expression which expects the result of free -m to contain "Mem:" which is not the case for localized ubuntu versions. Maybe this can be fixed by searching for ":" only and returning only the first line with grep, i.e.: system_memory_in_mb=`free -m | awk '/:/ {print $2}' | grep -i "" --max-count=1` However, i'm not a shell scripter and so this must be tested elsewhere, too. Sergey, can you test it for the russian version, please? > Cassandra does not start on Ubuntu 13.04 RUssian > ------------------------------------------------ > > Key: CASSANDRA-6162 > URL: https://issues.apache.org/jira/browse/CASSANDRA-6162 > Project: Cassandra > Issue Type: Bug > Components: Packaging > Environment: Ubuntu 13.04, Russian (!) ,java version "1.7.0_40" > Reporter: Sergey Nagaytsev > Labels: easyfix > Attachments: CASSANDRA-6162.patch > > > Output just after install: > vm.max_map_count = 1048575 > expr: синтаксическая ошибка > ^^^^ RU: syntax error > expr: синтаксическая ошибка > ^^^^ RU: syntax error > /etc/init.d/cassandra: 59: [: Illegal number: > /etc/init.d/cassandra: 63: [: Illegal number: > /etc/init.d/cassandra: 67: [: Illegal number: > expr: синтаксическая ошибка > ^^^^ RU: syntax error > /etc/init.d/cassandra: 81: [: Illegal number: > xss = -ea -javaagent:/usr/share/cassandra/lib/jamm-0.2.5.jar > -XX:+UseThreadPriorities -XX:ThreadPriorityPolicy=42 -XmsM -XmxM -XmnM > -XX:+HeapDumpOnOutOfMemoryError -Xss256k -- This message was sent by Atlassian JIRA (v6.1.5#6160)