vogievetsky opened a new pull request, #15405:
URL: https://github.com/apache/druid/pull/15405

   I just upgraded my Mac to MacOS Sonoma and I am unable to start Druid with 
`bin/start-druid`
   
   
![image](https://github.com/apache/druid/assets/177816/6e3ccb40-73aa-40c8-90d0-ace790c3bde6)
   
   This is due to the fact that the starter script can not detect the physical 
memory on my machine.
   The physical memory is detected by doing `sysctl -a | grep hw.memsize` which 
for me now returns 2 values:
   
   
![image](https://github.com/apache/druid/assets/177816/3332eee4-c399-45b2-9682-2a37ead38acb)
   
   I am guessing that "hw.memsize_usable" was added in MacOS Sonoma as 
previously it worked.
   
   The script then does a `split(':')` which for me produces `['hw.memsize', ' 
68719476736\nhw.memsize_usable', ' 68719476736\n']`
   
   and the `[1]` index can not be parsed as a number.
   
   I am fixing this by instead greping for `sysctl -a | grep hw.memsize:` the 
added `:` means that it should only match one line and is generally more robust.
   
   I also rewrote the error message to be better, the original `Please specify 
memory argument` was accurate but confused me.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to