Error: Could not find or load main class org.apache.hadoop.util.PlatformName - apache

I have configured a single node cluster and its is running fine unexpectedly I got the below error and it stopped working. All the hadoop paths are configured in their paths but still I'm getting this error how to come out of this.
/opt/hadoop/hadoop/bin/../libexec/hadoop-config.sh: line 24: /bin/basename: cannot execute binary file
/opt/hadoop/hadoop/bin/../libexec/hadoop-config.sh: line 29: /bin/basename: cannot execute binary file
Warning: $HADOOP_HOME is deprecated.
Error: Could not find or load main class org.apache.hadoop.util.PlatformName
Error: Could not find or load main class org.apache.hadoop.fs.FsShell

Related

OSError: cannot load library 'libxcb.dll': error 0x7e

I tried to run a python program on the PyQt5 framework but it's giving me .dll file errors.
I've installed tools to fix it but it's still giving me this error :
OSError: cannot load library 'libxcb.dll': error 0x7e
I have already installed all these tools:
**Uniconvertor-2.0rc5-win64_headless.msi
GTK+ for Windows Runtime Environment Installer**
it always gives me this error "OSError: cannot load library 'libxcb.dll': error 0x7e".
Is there any other way to fix this error?

executeprocess error in nifi

i have hive in hdinsight cluster and nifi in my local machine.
i am trying to execute a hive script from executeprocess processor which has properties set as below:
command: hive
command argument: -f /home/name/firstq.hql
Redirect Error Stream: true
i have controller services to hiveconnection pool. when i start the processor, the error is thrown as shown below:
o.a.n.processors.standard.ExecuteProcess ExecuteProcess[id=d5db18b2-0159-1000-6569-c054490cbfa5] Failed to create process due to java.io.IOException: Cannot run program "hive": CreateProcess error=2, The system cannot find the file specified: java.io.IOException: Cannot run program "hive": CreateProcess error=2, The system cannot find the file specified
org.apache.nifi.util.ReflectionUtils Failed while invoking annotated method 'public void org.apache.nifi.processors.standard.ExecuteProcess.shutdownExecutor()' with arguments '[]'.
i have tried the command argument by giving the local machine path too. though same error is thrown.
in the script, i am trying to insert one row into the existing table.
please help me what am i doing wrong.
thanks

RabbitMQ Library Error:

I am getting a error when i run this rabbitmqserver.php file.
i googled and i couldn't find the answer.
I have all the libraries installed and i added the extension=amqp.so in the php5/cli file.
the error reads as:
PHP Fatal error: Failed to start request processor: exception 'AMQPConnectionException' with message 'Library error: a socket error occurred - Potential login failure.' in /home/ozzy/git/rabbitmqphp_example/rabbitMQLib.inc:110
Stack trace:
#0 /home/ozzy/git/rabbitmqphp_example/rabbitMQLib.inc(110): AMQPConnection->connect()
#1 /home/ozzy/git/rabbitmqphp_example/testRabbitMQServer.php(35): rabbitMQServer->process_requests('requestProcesso...')
#2 {main} in /home/ozzy/git/rabbitmqphp_example/rabbitMQLib.inc on line 132
I went to localhost:15672 and add a user called test along with a password. then i went inside Virtual host and added a virtual host and it worked.

Error when updating

I got this error message when updating to IP 4.2.6:
Warning: require_once(Ip/script/run.php) [function.require-once]:
failed to open stream:
No such file or directory in /home/stenly/public_html/index.php on line 14
Fatal error: require_once() [function.require]:
Failed opening required 'Ip/script/run.php' (include_path='.:/usr/lib/php:/usr/local/lib/php')
in /home/stenly/public_html/index.php on line 14
What could have gone wrong and is there a solution to this as the website is an active and busy website?
I don't know how that could happen. But try to take Ip/script/run.php from downloaded archive (http://download.impresspages.org/ImpressPages_4_2_6.zip) and palce it on your server.

Constant Build issues with IIS not being able to find WebViewPage in System.Web.Mvc

I keep running into the following exception
Description: An error occurred during the compilation of a resource
required to service this request. Please review the following specific
error details and modify your source code appropriately.
Compiler Error Message: CS0234: The type or namespace name
'WebViewPage' does not exist in the namespace 'System.Web.Mvc' (are
you missing an assembly reference?)
Source Error:
Line 27: Line 28: Line 29: public class
_Page_Views_Content_Index_cshtml : System.Web.Mvc.WebViewPage { Line 30: Line 31: #line hidden
Source File: c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary
ASP.NET
Files\root\8df93262\ed60a52a\App_Web_index.cshtml.eba9863.jffbohqj.0.cs
Line: 29
So far doing a clean and a rebuild normally fixes the problem. The Dev Environment is using IIS, it seems like something is going wrong when IIS caches the binaries. From some trial and error it seems like the issue happens if a request is made to the site at the same time as the site is being built.
Does anyone have any idea what might be causing the problem? It seems to be a configuration issue as other developers with the same setup do not have the issue.
It turned out to be the references in the project were falling back to a different version of MVC.