Azure Purview & Self-hosted integration runtime - Java not found error - azure

I am following the guide here to register and scan a Hive Metastore from Azure Purview.
However I get the following error when I run the scan:
Error: (3913) JavaException: Java cannot be found. Please install and add to Path
This is the error shown in the Event Viewer:
System error while attempting to launch datascan process. ActivityId: 882a48d1-1fc1-4aed-80c2-16a4b0687e81
Exception:'Type=Microsoft.DataTransfer.Execution.Core.ExecutionException,Message=JavaException: Java cannot be found. Please install and add to Path,Source=Microsoft.DataTransfer.Execution.DataScanExecutor,StackTrace= at Microsoft.DataTransfer.Execution.DataScan.Helpers.JavaEnforcer.GetJavaVersion()
at Microsoft.DataTransfer.Execution.DataScan.Helpers.JavaEnforcer.Enforce()
at Microsoft.DataTransfer.Execution.DataScan.DataScanExecutor.d__20.MoveNext(),'
Job ID: a0525370-ad15-4132-99b1-069527015834
Log ID: Error
However I have correctly installed Java on the Windows VM as shown with these cmds and outputs:
C:\Users\admin>where java
C:\Program Files\Java\jdk-11.0.11\bin\java.exe
C:\Users\admin>java -version
java version "11.0.11" 2021-04-20 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.11+9-LTS-194)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.11+9-LTS-194, mixed mode)
C:\Users\admin>echo %JAVA_HOME%
C:\Program Files\Java\jdk-11.0.11
C:\Users\admin>echo %Path%
C:\Program Files\Java\jdk-11.0.11\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Users\admin\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Java\jdk-11.0.11\bin;
Is there anything else that I might have missed to correctly install Java? I also followed the instructions to add to the Path under User variables for admin and System variables.

Here's a few solutions:
Ensure all components use the same architecture (x86 or x64):
Java, Visual Studio C++ Redistributable, and SHIR
Ensure the JDBC driver installed (i.e. ojdbc7.jr) has Full File Permissions added to it for the "NT Service\DiaHostService" (Ensure when searching the user the "From this Location" is set to the local PC not an AD domain).
Ensure _JAVA_OPTION environment variable is not set

Related

ERROR DseModule.java:114 - Class not found: org/apache/lucene/uninverting/FieldCache. Exiting

My cassandra was working and suddenly I get the error
with 6.8 and I am using java 8
ERROR [main] 2022-03-19 21:27:23,812 DseModule.java:114 - Class not found: org/apache/lucene/uninverting/FieldCache. Exiting...
My java version
java -version java version "1.8.0_181" Java(TM) SE Runtime Environment (build 1.8.0_181-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)
I am running the command,
bin/dse cassandra
to start cassandra
I have tried removing cassandra and reinstalling. I even tried deleting the /var/lib/cassandra folder
The error on its own doesn't give us an indication of the problem. We need quite a bit more information including:
log files
cassandra.yaml and dse.yaml
OS platform and version
My suggestion is that you should log a ticket with DataStax Support so one of our engineers can assist you. Cheers!

Kafka on RHEL gives me "Classpath Is Empty"

I'm trying to install Kafka 2.6.0 on a Red Hat VM. When I try to start Zookeeper, I get:
"Classpath is empty. Please build the project first..."
I have the following Java Version, which is Java 8 as far as I understand:
openjdk version "1.8.0_171"
OpenJDK Runtime Environment (build 1.8.0_171-b10)
OpenJDK 64-Bit Server VM (build 25.171-b10, mixed mode)
Is there something I need to do to set a "Classpath" environment variable?
I updated .bashrc for my users and the Classpath error went away.
Source: https://computingforgeeks.com/how-to-set-java_home-on-centos-fedora-rhel

Android Studio 2.2.2.0 on Mac does not start

I am having problems with all of the 2.2.x versions of Android Studio on my Mac. I have downloaded the 2.2.2.0, and when I run the app, I can see the icon comes up in the Dock briefly, and then goes away.
OS X:
Yosemite (10.10.5)
System Java:
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-468-11M4833)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-468, mixed mode)
Note: This is the ONLY JRE I have on my system
Console Error:
10/22/16 11:03:21.548 AM studio[953]: allVms required 1.8*,1.8+
10/22/16 11:03:21.552 AM studio[953]: Cannot load JVM bundle: Error Domain=NSCocoaErrorDomain Code=3585 "The bundle “OpenJDK 8” couldn’t be loaded because it doesn’t contain a version for the current architecture." (dlopen_preflight(/Applications/Android Studio.app/Contents/jre/jdk/Contents/MacOS/libjli.dylib): no suitable image found. Did find:
/Applications/Android Studio.app/Contents/jre/jdk/Contents/MacOS/libjli.dylib: mach-o, but wrong architecture) UserInfo=0x7f845610 {NSLocalizedRecoverySuggestion=Try installing a universal version of the bundle., NSFilePath=/Applications/Android Studio.app/Contents/jre/jdk/Contents/MacOS/libjli.dylib, NSLocalizedFailureReason=The bundle doesn’t contain a version for the current architecture., NSLocalizedDescription=The bundle “OpenJDK 8” couldn’t be loaded because it doesn’t contain a version for the current architecture., NSDebugDescription=dlopen_preflight(/Applications/Android Studio.app/Contents/jre/jdk/Contents/MacOS/libjli.dylib): no suitable image found. Did find:
/Applications/Android Studio.app/Contents/jre/jdk/Contents/MacOS/libjli.dylib: mach-o, but wrong architecture, NSBundlePath=/Applications/Android Studio.app/Contents/jre/jdk}
Any suggestions would be greatly appreciated, as I've been trying to figure this out for quite some time.
Try install Java SE 1.8
Add JAVA_HOME to PATH in mac
$ touch .bash_profile
In bash_profile, add
export JAVA_HOME=`/usr/libexec/java_home`
$ echo $JAVA_HOME
You will see something like
/Library/Java/JavaVirtualMachines/1.8.0.jdk/Contents/Home
Since Android Studio v2.2 (AS) uses its own bundled OpenJDK 8, any other installed JDKs are not the issue. The solution is to install AS (either dragging from the mounted DMG or unzipping) anywhere except the Applications folder.
For whatever reason, when AS resides in Applications, it raises the error posted in the question. I would be very interested to know the reason, but after wasting countless hours, I am simply relieved it is running.

Jmeter MarshalException: error marshalling arguments

I configured jmeter to run the test distributed using Azure Windows Virtual Machines. All machines are using windows.
The test ran successfully using the GUI mode and I can get the result saved on master
However when I try to run the test from the console jmeter -n -t plan.jmx -r the console says:
Error in rconfigure() method java.rmi.MarshalException: error marshalling arguments; nested exception is:
java.io.NotSerializableException: org.apache.jmeter.JMeter$ListenToTest
I' ve configured all the virtual machines (server and clients) like:
Java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode)
Jmeter version 2.13
Jmeter Plugins 1.31
Any ideas what could be the issue?
Thanks
EDIT
I Downgrade Java version to 1.7 and now the error says
Error in rconfigure() method java.rmi.MarshalException: error marshalling arguments; nested exception is:
java.io.NotSerializableException: org.apache.jmeter.threads.RemoteThreadsListenerTestElement
Can Jmeter Plugins the cause of the issue?
EDIT - FIXED
I changed Plugin version from 1.31 to 1.21 and now works!!!.
However I think, and i'm just guessing here, the error happens when I ran the test from GUI and then on the console. Probably GUI leaves a socket open or something like that, not sure.
Anyway this combination works
Java version "1.7.0_79"
Java(TM) SE Runtime Environment (build 1.7.0_79-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)
Jmeter version 2.13
Jmeter Plugins 1.21 (only Standard Version)
Check the logs in jmeter.log (inside bin folder) file and if you have somewhere an error like this:
2018-09-17 14:41:32,097 ERROR o.a.j.e.ConvertListeners: Error replacing class org.apache.jmeter.threads.RemoteThreadsListenerTestElement by wrapper: class org.apache.jmeter.threads.RemoteThreadsListenerWrapper java.rmi.RemoteException: Cannot start. yout-pc-name is a loopback address.
Then start the jmeter by giving:
./jmeter -Djava.rmi.server.hostname=your_ip_address
I was struggling with:
NotSerializableException: org.apache.jmeter.threads.RemoteThreadsListenerTestElement
The problem in my case was:
Caused by: java.net.BindException: Address already in use (Bind failed)
This error info did not appear in the standard output, just the log file.

32-bit linux based eclipse giving error on startup in Fedora 12

I downloaded the 32-bit eclipse for my 32-bit fedora 12. I extracted the tar.gz without any error. But when i click on the eclipse executable, i am getting the error:
"Failed to load the JNI shared library "/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/bin/../lib/i386/client/libjvm.so"
"
I am not able to resolve this error. Please inform how to proceed.
Regards,
Go to your eclipse folder
Open eclipse.ini file and check if there is -vm option set properly
Else set -vm in one line followed by your jdk installed bin folder.
Hope this helps yo solve your problem.
I'd suggest avoiding OpenJDK, as Eclipse will keep complaining about it.
So, navigate to http://java.com/en/download/manual.jsp and download appropriate Sun's Java package (32 or 64 bit, depending on your current installation). As Fedora uses RPMs for package management, I advise to use that method.
Then, after installation, run java -version in terminal, you should get something like:
$ java -version
java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Java HotSpot(TM) Client VM (build 17.1-b03, mixed mode, sharing)

Resources