You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by sumit ghosh <su...@yahoo.com> on 2011/12/07 08:12:39 UTC
Installing HBase
Hi,
I was trying to run HBase in an environment where there is no bash. Will it stll work fine?
Thanks,
Sumit
Re: Installing HBase
Posted by Harsh J <ha...@cloudera.com>.
A lack of 'bash' specifically (meaning, you are still using another shell?) may be OK, you'd lose out on using some shipped scripts to start and stop clusters. But if you are running on non-*nix platforms, there could be issues in running HDFS.
On 07-Dec-2011, at 12:42 PM, sumit ghosh wrote:
> Hi,
>
> I was trying to run HBase in an environment where there is no bash. Will it stll work fine?
>
> Thanks,
> Sumit
Re: Installing HBase
Posted by Mikhail Bautin <ba...@gmail.com>.
Hi Sumit,
"#!/usr/bin/env bash" will search for bash on the configured PATH, while
#!/usr/bin/bash assumes that the bash binary is in /usr/bin. In any way,
bash should probably run fine on AIX, even if you have to compile it from
sources. I suggest that you install bash into /bin/bash or /usr/bin/bash,
though.
Thanks,
--Mikhail
On Wed, Dec 7, 2011 at 2:18 AM, sumit ghosh <su...@yahoo.com> wrote:
> Hi Michael,
>
> Thanks for the impact analysis of running HBase on AIX.
>
> There is no /usr/bin/bash on the system. But I am not clear of the
> difference between #!/usr/bin/bash and #!/usr/bin/env bash
>
> Warm Regards,
> Sumit
>
>
>
> ________________________________
> From: Michael Segel <mi...@hotmail.com>
> To: "user@hbase.apache.org" <us...@hbase.apache.org>
> Sent: Wednesday, 7 December 2011 3:37 PM
> Subject: Re: Installing HBase
>
> First don't use AIX.
> It's nothing against IBM, except that you will find that you are going to
> run unsupported unless you run the apache release and IBM is selling you
> support and you will end up with a derivative.
>
> Second, convince a bunch of open source contributors to switch to ksh.
> (good luck on that.)
>
> Third, you could install bash on AIX, good luck with that.
>
> The point is that either you are going to have to do a lot of extra work,
> ending up with a derivative, all on a system which you are trying to learn.
>
> Note that you could install bash...
> However you asked whats the difference between /usr/bin/bash and
> /usr/bin/env bash.
> Good question.
>
> Assuming that /usr/bin/bash exists, it would imply that you already have
> bash on the system.
>
> So if you first type in /usr/bin/bash what happens?
>
> If you get a bash shell prompt, then try and run the script. If it runs,
> then you need to change your user shell.
>
> HTH
> -Mike
>
> Sent from my iPhone
>
> On Dec 7, 2011, at 3:26 AM, "sumit ghosh" <su...@yahoo.com> wrote:
>
> > Hi Mikhail,
> >
> > I am installing HBase on an AIX machine. It has ksh and sh but no bash.
> Hence when it encounters #!/usr/bin/env bash the script gives an error.
> bash: A file or directory in the path name does not exist.
> >
> > How is #!/usr/bin/bash different from #!/usr/bin/env bash
> >
> > As Harsh says that the scripts wont run - they are not running. In such
> a case 14 scripts from HBase, a similar set for Hadoop will need to be
> changed and any other related sub-project in future. Are there any more
> changes that will be needed?
> >
> > Thanks,
> > Sumit.
> >
> >
> > ________________________________
> > From: Mikhail Bautin <ba...@gmail.com>
> > To: user@hbase.apache.org; sumit ghosh <su...@yahoo.com>
> > Sent: Wednesday, 7 December 2011 12:55 PM
> > Subject: Re: Installing HBase
> >
> >
> > Hi Sumit,
> >
> > Could you please provide more details about this environment? What
> operating system are you using? HBase is most frequently deployed on Linux,
> and many developers run it on Mac OS X locally for testing. It is also
> possible to run HBase on Windows using Cygwin (
> http://hbase.apache.org/docs/r0.20.6/cygwin.html) -- Cygwin provides a
> UNIX-like environment on Windows, which includes bash.
> >
> > Thanks,
> > --Mikhail
> >
> >
> > On Tue, Dec 6, 2011 at 11:12 PM, sumit ghosh <su...@yahoo.com> wrote:
> >
> > Hi,
> >>
> >> I was trying to run HBase in an environment where there is no bash.
> Will it stll work fine?
> >>
> >> Thanks,
> >> Sumit
>
Re: Installing HBase
Posted by sumit ghosh <su...@yahoo.com>.
Hi Michael,
Thanks for the impact analysis of running HBase on AIX.
There is no /usr/bin/bash on the system. But I am not clear of the difference between #!/usr/bin/bash and #!/usr/bin/env bash
Warm Regards,
Sumit
________________________________
From: Michael Segel <mi...@hotmail.com>
To: "user@hbase.apache.org" <us...@hbase.apache.org>
Sent: Wednesday, 7 December 2011 3:37 PM
Subject: Re: Installing HBase
First don't use AIX.
It's nothing against IBM, except that you will find that you are going to run unsupported unless you run the apache release and IBM is selling you support and you will end up with a derivative.
Second, convince a bunch of open source contributors to switch to ksh.
(good luck on that.)
Third, you could install bash on AIX, good luck with that.
The point is that either you are going to have to do a lot of extra work, ending up with a derivative, all on a system which you are trying to learn.
Note that you could install bash...
However you asked whats the difference between /usr/bin/bash and /usr/bin/env bash.
Good question.
Assuming that /usr/bin/bash exists, it would imply that you already have bash on the system.
So if you first type in /usr/bin/bash what happens?
If you get a bash shell prompt, then try and run the script. If it runs, then you need to change your user shell.
HTH
-Mike
Sent from my iPhone
On Dec 7, 2011, at 3:26 AM, "sumit ghosh" <su...@yahoo.com> wrote:
> Hi Mikhail,
>
> I am installing HBase on an AIX machine. It has ksh and sh but no bash. Hence when it encounters #!/usr/bin/env bash the script gives an error. bash: A file or directory in the path name does not exist.
>
> How is #!/usr/bin/bash different from #!/usr/bin/env bash
>
> As Harsh says that the scripts wont run - they are not running. In such a case 14 scripts from HBase, a similar set for Hadoop will need to be changed and any other related sub-project in future. Are there any more changes that will be needed?
>
> Thanks,
> Sumit.
>
>
> ________________________________
> From: Mikhail Bautin <ba...@gmail.com>
> To: user@hbase.apache.org; sumit ghosh <su...@yahoo.com>
> Sent: Wednesday, 7 December 2011 12:55 PM
> Subject: Re: Installing HBase
>
>
> Hi Sumit,
>
> Could you please provide more details about this environment? What operating system are you using? HBase is most frequently deployed on Linux, and many developers run it on Mac OS X locally for testing. It is also possible to run HBase on Windows using Cygwin (http://hbase.apache.org/docs/r0.20.6/cygwin.html) -- Cygwin provides a UNIX-like environment on Windows, which includes bash.
>
> Thanks,
> --Mikhail
>
>
> On Tue, Dec 6, 2011 at 11:12 PM, sumit ghosh <su...@yahoo.com> wrote:
>
> Hi,
>>
>> I was trying to run HBase in an environment where there is no bash. Will it stll work fine?
>>
>> Thanks,
>> Sumit
Re: Installing HBase
Posted by Michael Segel <mi...@hotmail.com>.
First don't use AIX.
It's nothing against IBM, except that you will find that you are going to run unsupported unless you run the apache release and IBM is selling you support and you will end up with a derivative.
Second, convince a bunch of open source contributors to switch to ksh.
(good luck on that.)
Third, you could install bash on AIX, good luck with that.
The point is that either you are going to have to do a lot of extra work, ending up with a derivative, all on a system which you are trying to learn.
Note that you could install bash...
However you asked whats the difference between /usr/bin/bash and /usr/bin/env bash.
Good question.
Assuming that /usr/bin/bash exists, it would imply that you already have bash on the system.
So if you first type in /usr/bin/bash what happens?
If you get a bash shell prompt, then try and run the script. If it runs, then you need to change your user shell.
HTH
-Mike
Sent from my iPhone
On Dec 7, 2011, at 3:26 AM, "sumit ghosh" <su...@yahoo.com> wrote:
> Hi Mikhail,
>
> I am installing HBase on an AIX machine. It has ksh and sh but no bash. Hence when it encounters #!/usr/bin/env bash the script gives an error. bash: A file or directory in the path name does not exist.
>
> How is #!/usr/bin/bash different from #!/usr/bin/env bash
>
> As Harsh says that the scripts wont run - they are not running. In such a case 14 scripts from HBase, a similar set for Hadoop will need to be changed and any other related sub-project in future. Are there any more changes that will be needed?
>
> Thanks,
> Sumit.
>
>
> ________________________________
> From: Mikhail Bautin <ba...@gmail.com>
> To: user@hbase.apache.org; sumit ghosh <su...@yahoo.com>
> Sent: Wednesday, 7 December 2011 12:55 PM
> Subject: Re: Installing HBase
>
>
> Hi Sumit,
>
> Could you please provide more details about this environment? What operating system are you using? HBase is most frequently deployed on Linux, and many developers run it on Mac OS X locally for testing. It is also possible to run HBase on Windows using Cygwin (http://hbase.apache.org/docs/r0.20.6/cygwin.html) -- Cygwin provides a UNIX-like environment on Windows, which includes bash.
>
> Thanks,
> --Mikhail
>
>
> On Tue, Dec 6, 2011 at 11:12 PM, sumit ghosh <su...@yahoo.com> wrote:
>
> Hi,
>>
>> I was trying to run HBase in an environment where there is no bash. Will it stll work fine?
>>
>> Thanks,
>> Sumit
Re: Installing HBase
Posted by sumit ghosh <su...@yahoo.com>.
Hi Mikhail,
I am installing HBase on an AIX machine. It has ksh and sh but no bash. Hence when it encounters #!/usr/bin/env bash the script gives an error. bash: A file or directory in the path name does not exist.
How is #!/usr/bin/bash different from #!/usr/bin/env bash
As Harsh says that the scripts wont run - they are not running. In such a case 14 scripts from HBase, a similar set for Hadoop will need to be changed and any other related sub-project in future. Are there any more changes that will be needed?
Thanks,
Sumit.
________________________________
From: Mikhail Bautin <ba...@gmail.com>
To: user@hbase.apache.org; sumit ghosh <su...@yahoo.com>
Sent: Wednesday, 7 December 2011 12:55 PM
Subject: Re: Installing HBase
Hi Sumit,
Could you please provide more details about this environment? What operating system are you using? HBase is most frequently deployed on Linux, and many developers run it on Mac OS X locally for testing. It is also possible to run HBase on Windows using Cygwin (http://hbase.apache.org/docs/r0.20.6/cygwin.html) -- Cygwin provides a UNIX-like environment on Windows, which includes bash.
Thanks,
--Mikhail
On Tue, Dec 6, 2011 at 11:12 PM, sumit ghosh <su...@yahoo.com> wrote:
Hi,
>
>I was trying to run HBase in an environment where there is no bash. Will it stll work fine?
>
>Thanks,
>Sumit
Re: Installing HBase
Posted by Mikhail Bautin <ba...@gmail.com>.
Hi Sumit,
Could you please provide more details about this environment? What
operating system are you using? HBase is most frequently deployed on Linux,
and many developers run it on Mac OS X locally for testing. It is also
possible to run HBase on Windows using Cygwin (
http://hbase.apache.org/docs/r0.20.6/cygwin.html) -- Cygwin provides a
UNIX-like environment on Windows, which includes bash.
Thanks,
--Mikhail
On Tue, Dec 6, 2011 at 11:12 PM, sumit ghosh <su...@yahoo.com> wrote:
> Hi,
>
> I was trying to run HBase in an environment where there is no bash. Will
> it stll work fine?
>
> Thanks,
> Sumit