What is PIG_HOME, PIG_INSTALL in a cloudera installation? - linux

I'm running "Apache Pig version 0.11.0-cdh4.3.0".
Because of this issue (Pig ORDER command fails) I've been told to set my pig_home or pig_install.
However, I can't figure out where the pig home folder would be when installed through cloudera?
I'm on a ubuntu system (if that help).

Depends on your installation method and possibly the OS itself, but look under /usr/lib/pig/.

Related

Why NetBeans can't find Mercurial path?

I have a Linux Mint VM, where I installed formerly NetBeans 12.x (up to 12.6) and now I've updated it to 13.0, all with flatpak, and even starting from a clean setup.
With all those setups, NetBeans can't find Mercurial, even if I really have it in /usr/bin/hg available and working (when used from the shell).
From menu Team / Mercurial / Initialize repository... I get the error "Mercurial could not be found", asking to check PATH.
The strange behavior is that if I even browse for Options and Mercurial Executable Path to /usr/bin I can't see hg in there, while it is in the filesystem!
Is NB browsing somewhere else when I open /usr/bin?
Is it accessing some virtual environment? I'm confused
I have a partial solution: the flatpak package is indeed at fail, as for some reason it's not seeing my /usr/bin but a virtualized (?) directory, where many files are missing - notably hg and hg-ssh
So I removed the package suggested by the Linux Mint Software Manager and installed the package got from the Apache NetBeans site, similarly to what #flied-onion did.
What's still missing is that NetBeans relies on the hgk application as an hg GUI interface for some functions (see Team / View). This is unknown to me, and I don't find it in any (recent) Debian flavor.

Does CouchDB v 2.1.1 Run on WIndows 10?

I installed CouchDB v 2.1.1 on Windows 10 and it doesn't appear to work. I bring up Fauxton and it gives this error:
Hmmm...can’t reach this page
Make sure you’ve got the right web address: http://localhost:5984
The Apache CouchDB service was not created.
The instructions for manually starting CouchDB indicate that you run couchdb.bat from the bin folder. There is no couchdb.bat in the bin folder.
The CouchDB installation folder is c:\couchdb.
I installed v 1.7.1_17.5 and it runs fine. The Apache CouchDB service is now installed and running.
In our application we need the _find function which is not available on v 1.7.1.
For CouchDB v 2.1.1 on Windows 10 64 bit, installed from couchdb-2.1.1.msi...
The Apache CouchDB service is not installed with the CouchDB installation. The couchdb.bat file in the c:\couchdb\bin folder was renamed to couchdb.cmd.
Run couchdb.cmd from a command shell with admin privilege and couchdb will work correctly.
Yes! CouchdDB 2.x works on windows 10, I've set it up myself. However, you should consider verifying if your distro is x64 because there seem not to be an official distribution for x86 windows

How Install Hadoop and Hive in Ubuntu Linux in VM box?

I am using Windows 7 OS, I would like to learn Hive and Hadoop. So I installed Ubuntu 13.04 version in My VM Box. When i select download the Hadoop and Hive The below URL having multiple files to download Could you please help me out to install Hive in Ubuntu box else Is there any other steps do you have any steps
http://mirror.tcpdiag.net/apache/hadoop/common/hadoop-1.1.2/
hadoop-1.1.2-1.i386.rpm
hadoop-1.1.2-1.i386.rpm.mds
hadoop-1.1.2-1.x86_64.rpm
hadoop-1.1.2-1.x86_64.rpm.mds
hadoop-1.1.2-bin.tar.gz
hadoop-1.1.2-bin.tar.gz.mds
hadoop-1.1.2.tar.gz
hadoop-1.1.2.tar.gz.mds
hadoop_1.1.2-1_i386.deb
hadoop_1.1.2-1_i386.deb.mds
hadoop_1.1.2-1_x86_64.deb
hadoop_1.1.2-1_x86_64.deb.mds
Since you are new to both Hadoop and Hive, you are better off going ahead with their .tar.gz archives, IMHO. In case things don't go smooth you don't have to do the entire uninstall and reinstall stuff again and again. Just download hadoop-1.1.2.tar.gz, unzip it, keep the unzipped folder at some convenient location and proceed with the configuration. If you want some help regarding configuration you can visit this post. I have tried to explain the complete procedure with all the details.
Configuring Hive is quite straightforward. Download the .tar.gz file. unpack it just like you did with Hadoop. Then follow the steps shown here.
i386: Compiled for a 32-bit architecture
x86_64: Compiled for a 64-bit architecture
.rpm: Red Hat Package Manager file
.deb: Debian Package Manager file
.tar.gz: GZipped archive of the source files
bin.tar.gz: GZipped archive of the compiled source files
.mds: Checksum file
A Linux Package Manager is (sort of) like an installer in Windows. It automatically collects the necessary dependencies. If you download the source files you have to link (and/or compile) all the dependencies yourself.
There you're on Ubuntu, which is a Debian Linux distribution, and you don't seem to have much experience in a Linux environment I would recommend you to download the .deb file for your architecture. Ubuntu will automatically launch the package manager when you launch the .deb file if I remember correctly.
1 .Install Hadoop as single node cluster setup.
2 . Install hive after that.Hive requires Hadoop preinstalled.
Hadoop requires Java 1.6 at least and for single node setup you require SSH installed on your machine.rest of the steps are easy.
goto this link and Download the
http://mirror.tcpdiag.net/apache/hadoop/common/stable/
hadoop-1.1.2.tar.gz file (59M) from link and Install it...same as if you want install hive then go to offical site and download the stable version from it...

I can't compile CGI project to Linux in Lazarus

I installed Lazarus 1.0.10 and FCL package.
I made a CGI test program to run in my Hostgator account but when I compile it I get this error:
fcllaz.pas(0,0) Fatal: Can not find unit system used by fcllaz.
That if I configure the project to target Linux SO. If I use standard (Windows) it compiles ok, but my hostgator account is Linux.
Does anyone had that kind of problem? How to fix it?
(a.s. If you are trying to do crosscompiling, crosscompiling TO linux is an advanced topic. You are better off with installing a similar *nix system as your host in a VM)
FPC is probably not completely installed. Some Ubuntu/debian versions insist on having to do manual configuration afterwards.
Make sure that
there is a symlink of $prefix/bin/ppc386 to $prefix/lib/fpc//ppc386
make sure there is a /etc/fpc.cfg or ~/.fpc.cfg with a -Fu line in it that points
to $prefix/lib/fpc/$FPCVERSION/units/$FPCTARGET/* (in this case FPC will fill in version and target)
where $PREFIX is the prefix where you installed FPC ( typically /usr or /usr/local )
for more information see the buildfaq

Installing Recent Release of JDK Using Cygwin?

Can somebody tell me how to do this? Or, point me to a good link?
I want to install Jmeter but "./jmeter" tells me that:
Error: no server' JVM atC:\Program
Files\Java\jre1.6.0\bin\server\jvm.dll'.
So, I need to get the server JVM up and running.
I have been attempting to download and install the JDK from
http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u25-download-346242.html
And got a corrupted file error when I tried to install:
jdk-6u25-linux-ia64-rpm.bin
Should I be doing this via wget or apt-cyg? Or, how do i determine which installation
package I should be downloading from the oracle/sun downloads page?
Thanks in advance.
You are on Windows so you should try the Windows x86 version unless there is a particular reason why you want to do that with Cygwin. Or try this:
Copy 'server' folder from the JDK's JRE's bin folder (example: C:\Program Files\Java\jdk1.6.0\jre\bin\server)
Paste the 'server' folder to JRE's bin folder (example: C:\Program Files\Java\jre1.6.0\bin)
Cygwin aims for Linux source compatibility, but it does not provide Linux binary compatibility. This means that programs have to be built specifically for Cygwin and that Linux binaries such as the linux-ia64 JVM mentioned here will not run on Cygwin.
Perhaps it is possible to build the OpenJDK JVM for Cygwin, but it doesn't ship with Cygwin. The Cygwin Ports repository contains a package for the lightweight JamVM.
But in any case, JMeter was looking for the native Windows version of the JVM, so you probably just want to install that, as Jano already suggested.

Resources