Apache kafka Setup on windows getting error # - apache-kafka

When I start the server with below command its showing below error, java path and all are good still showing like this please help with this issue.
D:\Softwares\kafka\kafka-0.10.0.0-src>.\bin\windows\kafka-server-start.bat
.\config\server.properties '#' is not recognized as an internal or
external command, operable program or batch file. Error: Could not
find or load main class kafka.Kafka

Taking a leap here, but you directory ends in src. Mine does not. Any chance you downloaded the source distribution instead of the binary ?

for more recent version, juts define the CLASSPATH in
./bin.windows/kafka-run-class.bat:
line 17 for example
set CLASSPATH=/confluent-5.3.1.TAR\share\java\kafka*

Related

Jboss6 not starting up - Error message

I have a small issue here. I installed Jboss-6.1.0 and when I run the 'run' bat file, JBoss does not get started and I get this error. (Please refer the attached)
My OS is Windows 8.1.I have set my Path and Java_Home variables correctly.Is there any more configuration to do?
A help is much appreciated.Thanks in advance.
I also had the same problem although with java 1.8. These are the steps I followed.
1.Go to the “bin” directory where you’ve installed JBoss
2.Edit the “run.bat” file
3.Search for the line “
set JAVA_OPTS=-Dprogram.name=%PROGNAME% -Dlogging.configuration=file:%DIRNAME%logging.properties %JAVA_OPTS%“
Change the %DIRNAME%
to your absolute path to the “bin” directory of your installed JBoss.e.g.
set JAVA_OPTS=-Dprogram.name=%PROGNAME% -Dlogging.configuration=file:”C:\Java\jboss-6.1.0-final\bin\logging.properties” %JAVA_OPTS%
I do not think the java version difference would affect the solution. It should work.

Unrecognized VM option 'CMSClassUnloadingEnabledn-J-Xmx2Gn'

I have installed scala, sbt on Mac. When I try to run sbt it gives an error Unrecognized VM option 'CMSClassUnloadingEnabledn-J-Xmx2Gn'. I think there is an issue with JVM but could not find any help for this error.
More error info:
Did you mean '(+/-)CMSClassUnloadingEnabled'?
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
I faced the same issue after I ran the command I ran this command: echo '-J-XX:+CMSClassUnloadingEnabled\n-J-Xmx2G\n' >> /usr/local/etc/sbtopts.
It seems the file /usr/local/etc/sbtopts contained both options in same line, separated by \n, i.e. the actual contents of the file were -J-XX:+CMSClassUnloadingEnabled\n-J-Xmx2G\n
The solution was to remove \n by editing this file, and pressing enter key instead, so that the contents of file /usr/local/etc/sbtopts look the way David mentioned in his response.
My guess is that the sbt configuration is confused with regards to line breaks and
mangles something like
-J-XX:+CMSClassUnloadingEnabled
-J-Xmx2G
into one line
On Windows machines, check next settings :
System properties / Advanced / Environment Variables
System variables
2.1. e.g. Maven settings for Java 8 may have this setting which does not work on Java 17, as "CMSClassUnloadingEnabled" is disabled :

Error message generated during the installation of github

"yo is not recognized as an internal or external command,operable program or batch file".This is what the error message i have got while trying to install the GIT-hub.By looking into the previous answers i have changed the variable path value too Though my issue is unresolved.Is there any other possible solutions to overcome this??

Error with zend installation on win 7

I am trying to install ZEND FRAMEWORK on my localhost but failing miserable. I am following the below mentioned steps but don't know where am I going wrong. Please help me with the same.
Steps are as follows that I followed:
Downloaded the ZEND Framework full package version 1.11.7 which is about 25 Mb in a zipped version and then unzipped it to a folder called ZendFrameWork.
Copied the ZendFramework folder inside my c:\xampp\php\
changed the "include_path = '.;\xampp\php\PEAR;\.;C:\xampp\php\ZendFramework\library' " in the php.ini file.
Then restarted the apache server.
EDIT :: I have successfully managed to get the zf command to run without any errors. but now, all it does is, after i enter "zf create myproject" it just gets stuck with the cursor blinking on the next line. And if i press CTRL+C, i get the message : Terminate batch job ? (Y/N)
Then set the environment variable for zf.bat file as " C:\xampp\php\ZendFramework\bin "
But when I try to execute the " zf create sampleProjName " from command line it does nothing, so then I used Windows Powershell and it gives the error which I have attached below.
Waiting for your response.
Thanks in advance.
Try using normal cmd - not powershell. Works fine for me.
Thanks for all your response.
I successfully installed Zend Framework.
I removed the full installation and replaced it with minimal installation and also I did not have php.exe set as an environment variable, so i did that too and also in the php.ini file i needed to write the zend library first before the pear one.
And this was it, TA-DA, it worked.
:)

GWT uploading a file to a unix path

I'm kinda puzzled how does a unix path looks like. I have followed an example to write a simple fileuploader using GWT. But the guide was written with Windows in mind. Say if I have C drive. In windows I would told the program to save the files to C:\save_here\
But in unix, I'm using ubuntu, there are no C drives or other drives with a single letter representation. So I wonder what do I write instead? I'm getting error 500 all the time now. And I can't figure out how the path should be.
The guide I've been following is found here
EDIT
It was not some problem duo to the path. Still need help though with fixing this problem. I basically followed the steps in the url I posted on this question.
unix paths start at a common root , denoted / and separates directories with a /
e.g. /home/starcom might be your home directory. So create a new directory, mkdir /home/starcom/uploaded and use that as the path. Or for testing you could perhaps just use /tmp
You can get more info here
When you get a 500 return code, that means the server encountered an error. This means that you should see an error message from the server somewhere. If you're running from Eclipse, you'll see the error on the Console tab. If you're running Tomcat, look for those logs.
You want to find the error message, since it'll probably explain what went wrong.