You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Andreas Petter (JIRA)" <ji...@apache.org> on 2014/01/23 16:44:40 UTC

[jira] [Comment Edited] (CASSANDRA-6162) Cassandra does not start on Ubuntu 13.04 RUssian

    [ 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:43 PM:
--------------------------------------------------------------------

confirmed, this is the case for German version, too. Installed 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.
This might 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.


was (Author: andreas.petter):
confirmed, this is the case for German version, too. Installed 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.
This might be fixed by searching for ":" only and returned 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.

> 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)