How to kill Bazel server process on Windows 11? - windows

How do I kill the Bazel server process on Windows 11?
On Windows 10 I used the task manager to identify all Open JDK processes and killed some - most of the time I deleted this way the Bazel Server or some other Java application.
On Windows 11 I do not see any OpenJDK processes anymore.

Get Bazel sever PID
bazel info server_pid
Use taskkill to delete Bazel server via its PID:
taskkill /F /PID <bazel_server_pid>

Related

Running Git-2.38.0-64-bit.exe gives "This program requires Windows service pack 1 or later"

I am trying to install Git-2.38.0-64-bit.exe on my Windows 10 Laptop. It immediately shows the error message "This program requires Windows service pack 1 or later."
I am running Windows 10 v. 21H1 Build 19043.2130. I am running Windows updates all the time, so this should be a quite current version. And I thought service packs were a thing of Windows 7.
So what should I do to be able to install that Git?
Your Windows 10 is officially supported by Git For Windows
Try and:
uncompress the portable archive PortableGit-2.38.0-64-bit.7z.exe in C:\Git
set a simplified path in a CMD:
set PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\
set "GH=C:\Git"
set "PATH=%GH%\bin;%GH%\cmd;%GH%\usr\bin;%GH%\mingw64\bin;%GH%\mingw64\libexec\git-core;%PATH%"
Check that Git is working in that CMD session, starting with git version.

Not able to start Minikube - with HyperV

I have been consistently getting above error, I am not able to understand what's wrong when it was working till date. I tried in powershell with following command no luck #(Get-Module -ListAvailable hyper-v).Name | Get-Unique
But I can see Hyper-v enabled and can see by navigating Hyper-v manager window.
System Info:
Minikube version 1.12.3
Windows powershell exists
Hyper-V enabled
WSL2 installed on Windows 10 OS
When I execute below command in PowerShell I get below response
Whereas when I try executing command Get-Module -Name Hyper-V -ListAvailable no output available.
PS C:\WINDOWS\system32> #(Get-Command Get-VM).ModuleName
Hyper-V
Are you using Windows 10 Home or Enterprise/Pro version? I faced the similar issue when I tried it on Windows 10 Home version and came to know that Microsoft-Hyper-V-Management-PowerShell is not available in Windows 10 home. See this link. It worked when I tried it in Enterprise version. Hope this works for you.

Run RStudio Server on Windows Subsystem for Linux

I installed RStudio Server on the Linux Subsystem on my Windows 10 machine, but my browser won't connect to http://localhost:8787. When I run sudo rstudio-server verify-installation, I get the error Unable to connect to Upstart.
I know WSL doesn't support Upstart or systemd; how can I run RStudio Server?
I can start RStudio Server without Upstart or systemd by running exec /usr/lib/rstudio-server/bin/rserver at the Bash prompt.

Jenkins PowerShell plugin unable to execute script - "ERROR: The target system must be running a 32 bit OS"

I'm trying to run a PowerShell script using the Jenkins PowerShell plugin and the script produces the following error:
"ERROR: The target system must be running a 32 bit OS"
The slave runs on a Windows 2008 R2 Server and the script runs well locally and remotely from my Windows 7/x64 desktop but it won't run through the plugin.
I also tried to run it using a Windows batch command plugin and that wouldn't work either - same error message.
I narrowed the issue and found the line that produces the error:
$results = openfiles /query /fo csv | Select-String $versionPath
It looks like the OPENFILES command causes the problem and i think it is because Jenkins starts the x86 version of PowerShell but i'm not sure what needs to be done so it will run on the right CPU architecture.
Any help will be appreciated.
Like i thought, Jenkins is running the jobs using the x86 versions of CMD and PowerShell.
To get them running using their x64 versions i had to run the slave with the x64 version of Java.
The following solution came much later but that's the best way to go:
Make sure you don't have any x86 versions of Java installed on your server. If you have 32bit Java versions installed, Jenkins slave will use these versions to run your jobs. x64 versions of Java can be downloaded here.
Start the x64 version of Internet Explorer on your server and go to the 'Manage Nodes' page in Jenkins to install the slave on your server.
Finally - install the slave as a Windows Service.

Cassandra as a Windows Service

I just installed Apache Casandra 1.2.1 on Windows Server 2012 (It's a VM). I double clicked cassandra.bat and it worked without an error.
How can I run Cassandra.bat as a Windows Service, so I can sign out from cumputer?
cassandra.bat file also helps you to run Cassandra as a Windows Service. You just need Commons Daemon Service Runner Windows binaries.
You will need to create a folder named daemon under the bin directory and extract the correct version (32/64 bit) of prunsrv.exe to this directory (bin\daemon).
Run command prompt and change directory to the bin. Type;
cassandra.bat install
Then run services.msc command to see cassandra(yes, lowercased) as a Windows Service.
You can also download
Datastax Community Edition
or
Cassandrows
which easily install, configure and run Apache Cassandra as a Windows Service.

Resources