question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problems starting CrateDB on Windows

See original GitHub issue

@nkev reported at https://github.com/crate/crate/pull/11101#issuecomment-793505283:

I’m not sure if this is relevant to this issue but I followed the instructions in URL above to install crate-4.4.2 on Windows 10 but no matter what I do I get the error JAVA_HOME environment variable must be set The JAVA_HOME variable is set:

PS C:\WINDOWS\system32> cd "C:\Users\me\Downloads\crate-4.4.2"
PS C:\Users\me\Downloads\crate-4.4.2> ./bin/crate
JAVA_HOME environment variable must be set
PS C:\Users\me\Downloads\crate-4.4.2> $env:JAVA_HOME
C:\Program Files\Java\jdk-11.0.10
PS C:\Users\me\Downloads\crate-4.4.2> ./bin/crate.bat
JAVA_HOME environment variable must be set
PS C:\Users\me\Downloads\crate-4.4.2>

I tried restarting the computer and also tried crate.bat instead with the same result. What am I doing wrong?

_Originally posted by @nkev in https://github.com/crate/crate/issues/11101#issuecomment-793505283_

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
amotlcommented, Mar 10, 2021

Dear Nuri,

we just integrated #11121, which will fix the start issue on Windows when using directory names with spaces for the next release of CrateDB. Again, thank you very much for reporting this flaw to us.

Currently, I can’t say much to the low disk watermark warning you might observe to be somehow sticky. In order to get more insights about it, I want to humbly ask you to share this on our community forum [1].

Attaching to your last question, I deliberately diverted that into #11125. However, the community forum [1] might also be the more appropriate place to discuss such questions.

I hope you are satisfied with my responses to that so far. So, let’s close this issue for the sake of being resolved on the main issue raised here.

Thank you very much again and with kind regards, Andreas.

[1] https://community.crate.io/

0reactions
nkevcommented, Mar 10, 2021

I think I have deleted enough files now for the installation to continue because it has gone under the low disk watermark and resharding (although there are no tables):

[2021-03-10T15:22:04,674][INFO ][o.e.c.r.a.DiskThresholdMonitor] [Pointe Blanche] low disk watermark [85%] exceeded on [VsTVNne4Qu-iY_yeeMCl0Q][Pointe Blanche][C:\Users\Nuri Surname\Downloads\crate-4.4.2\data\nodes\0] free: 56.1gb[11.8%], replicas will not be assigned to this node
[2021-03-10T15:22:34,675][INFO ][o.e.c.r.a.DiskThresholdMonitor] [Pointe Blanche] rerouting shards: [one or more nodes has gone under the high or low watermark]

The issue is, Powershell has been sitting on that last line for over an hour now. Is this normal?

The installation seems to have worked far enough for CrateDB to run:

image

Also, on the same LAN as this Windows desktop, I have my MacBook Pro running version v4.4.1 Trial (versus v4.4.2 Community on Windows). I was hoping they would automatically see each other and form a cluster. The MacBook has a single iss table from the getting started sample with only 3 records in it, but the Windows machine has no tables (nothing synced from the MacBook) because the cluster has not formed yet. Should I install v4.4.2 Community on my MacBook Pro?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting started — CrateDB: Tutorials
After the installation is finished, the crate service should be installed, but not running. Use the following command to start CrateDB:.
Read more >
Installation — CrateDB: Tutorials
This part of the documentation covers the installation of CrateDB on Linux, macOS and Windows systems. The first step to using any software...
Read more >
Running CrateDB — CrateDB: Reference
CrateDB ships with a crate command in the bin directory. The simplest way to start a CrateDB instance is to invoke crate without...
Read more >
Window functions — CrateDB: Reference
Window functions are functions which perform a computation across a set of rows which are related to the current row. This is comparable...
Read more >
Window Functions — CrateDB: Reference
This is comparable to aggregation functions, but window functions do not cause ... BY is supplied the window definition consists of a range...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found