|
| 1 | +================ |
| 2 | +Deploying Presto |
| 3 | +================ |
| 4 | + |
| 5 | +This page presents common problems encountered when deploying Presto. |
| 6 | + |
| 7 | +.. contents:: |
| 8 | + :local: |
| 9 | + :backlinks: none |
| 10 | + :depth: 1 |
| 11 | + |
| 12 | +``Permission denied: ‘/private/var/presto/data/var/run/launcher.pid`` |
| 13 | +--------------------------------------------------------------------- |
| 14 | + |
| 15 | +Problem |
| 16 | +^^^^^^^ |
| 17 | + |
| 18 | +``bin/launcher run`` or ``bin/launcher start`` returns the following error: |
| 19 | + |
| 20 | +``Permission denied: ‘/private/var/presto/data/var/run/launcher.pid`` |
| 21 | + |
| 22 | +Solution |
| 23 | +^^^^^^^^ |
| 24 | + |
| 25 | +Run the command as root or using ``sudo``. |
| 26 | + |
| 27 | +.. code-block:: none |
| 28 | +
|
| 29 | + sudo bin/launcher run |
| 30 | + sudo bin/launcher start |
| 31 | +
|
| 32 | +
|
| 33 | +``xcode select failed to locate python`` |
| 34 | +---------------------------------------- |
| 35 | + |
| 36 | +Problem |
| 37 | +^^^^^^^ |
| 38 | + |
| 39 | +(OS X only) ``bin/launcher run`` or ``bin/launcher start`` returns the following error: |
| 40 | + |
| 41 | +``xcode select failed to locate python requesting installation of command`` |
| 42 | + |
| 43 | +Solution |
| 44 | +^^^^^^^^ |
| 45 | + |
| 46 | +Create a symlink where XCode looks for python that links to python3. An example of such a command: |
| 47 | + |
| 48 | +.. code-block:: none |
| 49 | +
|
| 50 | + ln -s /Library/Developer/CommandLineTools/usr/bin/python3 /Library/Developer/CommandLineTools/usr/bin/python |
| 51 | +
|
| 52 | +
|
| 53 | +
|
| 54 | +
|
| 55 | +``Error: VM option ‘UseG1GC’ is experimental`` |
| 56 | +---------------------------------------------- |
| 57 | + |
| 58 | +Problem |
| 59 | +^^^^^^^ |
| 60 | +``bin/launcher run`` or ``bin/launcher start`` returns the following error: |
| 61 | + |
| 62 | +.. code-block:: none |
| 63 | +
|
| 64 | + Error: VM option ‘UseG1GC’ is experimental and must be enabled via -XX:+UnlockExperimentalVM Options. |
| 65 | +
|
| 66 | + Error: Could not create the Java Virtual Machine. |
| 67 | +
|
| 68 | + Error: A fatal exception has occurred. Program will exit. |
| 69 | +
|
| 70 | +Solution |
| 71 | +^^^^^^^^ |
| 72 | + |
| 73 | +This error occurs with some versions of Java. |
| 74 | + |
| 75 | +1. Check the version of Java that is installed on the system. |
| 76 | + |
| 77 | +2. If the installed version of Java is not the version in |
| 78 | + `Requirements <https://github.com/prestodb/presto?tab=readme-ov-file#requirements>`_, |
| 79 | + then uninstall Java and install a recommended version. |
0 commit comments