You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-user@hadoop.apache.org by lei liu <li...@gmail.com> on 2014/04/21 11:51:16 UTC

hdfs cache

I use hadoop-2.4, I want use the hdfs cache function.

I use "ulimit -l  32212254720" linux command to  set size of max locked
memory, but there is below error:
 ulimit  -l  322
-bash: ulimit: max locked memory: cannot modify limit: Operation not
permitted

How can I set size of max locked memory?

Thanks,

LiuLei

Re: hdfs cache

Posted by Akira AJISAKA <aj...@oss.nttdata.co.jp>.
Hi, I think you should check the followings:

* The setting is already written to /etc/security/limits.conf.
* The command is executed by root user.
* If you use sshd to connect the server and execute the command, you 
should make sure you have "UsePAM yes" in /etc/ssh/sshd_config and 
restart sshd once again.

Regards,
Akira

(2014/04/21 18:51), lei liu wrote:
> I use hadoop-2.4, I want use the hdfs cache function.
>
> I use "ulimit -l  32212254720" linux command to  set size of max locked
> memory, but there is below error:
>   ulimit  -l  322
> -bash: ulimit: max locked memory: cannot modify limit: Operation not
> permitted
>
> How can I set size of max locked memory?
>
> Thanks,
>
> LiuLei
>


Re: hdfs cache

Posted by Akira AJISAKA <aj...@oss.nttdata.co.jp>.
Hi, I think you should check the followings:

* The setting is already written to /etc/security/limits.conf.
* The command is executed by root user.
* If you use sshd to connect the server and execute the command, you 
should make sure you have "UsePAM yes" in /etc/ssh/sshd_config and 
restart sshd once again.

Regards,
Akira

(2014/04/21 18:51), lei liu wrote:
> I use hadoop-2.4, I want use the hdfs cache function.
>
> I use "ulimit -l  32212254720" linux command to  set size of max locked
> memory, but there is below error:
>   ulimit  -l  322
> -bash: ulimit: max locked memory: cannot modify limit: Operation not
> permitted
>
> How can I set size of max locked memory?
>
> Thanks,
>
> LiuLei
>


Re: hdfs cache

Posted by Akira AJISAKA <aj...@oss.nttdata.co.jp>.
Hi, I think you should check the followings:

* The setting is already written to /etc/security/limits.conf.
* The command is executed by root user.
* If you use sshd to connect the server and execute the command, you 
should make sure you have "UsePAM yes" in /etc/ssh/sshd_config and 
restart sshd once again.

Regards,
Akira

(2014/04/21 18:51), lei liu wrote:
> I use hadoop-2.4, I want use the hdfs cache function.
>
> I use "ulimit -l  32212254720" linux command to  set size of max locked
> memory, but there is below error:
>   ulimit  -l  322
> -bash: ulimit: max locked memory: cannot modify limit: Operation not
> permitted
>
> How can I set size of max locked memory?
>
> Thanks,
>
> LiuLei
>


Re: hdfs cache

Posted by Akira AJISAKA <aj...@oss.nttdata.co.jp>.
Hi, I think you should check the followings:

* The setting is already written to /etc/security/limits.conf.
* The command is executed by root user.
* If you use sshd to connect the server and execute the command, you 
should make sure you have "UsePAM yes" in /etc/ssh/sshd_config and 
restart sshd once again.

Regards,
Akira

(2014/04/21 18:51), lei liu wrote:
> I use hadoop-2.4, I want use the hdfs cache function.
>
> I use "ulimit -l  32212254720" linux command to  set size of max locked
> memory, but there is below error:
>   ulimit  -l  322
> -bash: ulimit: max locked memory: cannot modify limit: Operation not
> permitted
>
> How can I set size of max locked memory?
>
> Thanks,
>
> LiuLei
>