|
| 1 | +<!-- |
| 2 | + Licensed to the Apache Software Foundation (ASF) under one |
| 3 | + or more contributor license agreements. See the NOTICE file |
| 4 | + distributed with this work for additional information |
| 5 | + regarding copyright ownership. The ASF licenses this file |
| 6 | + to you under the Apache License, Version 2.0 (the |
| 7 | + "License"); you may not use this file except in compliance |
| 8 | + with the License. You may obtain a copy of the License at |
| 9 | +
|
| 10 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | +
|
| 12 | + Unless required by applicable law or agreed to in writing, |
| 13 | + software distributed under the License is distributed on an |
| 14 | + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 15 | + KIND, either express or implied. See the License for the |
| 16 | + specific language governing permissions and limitations |
| 17 | + under the License. |
| 18 | +--> |
| 19 | + |
| 20 | +# Running Apache Wayang on Windows |
| 21 | + |
| 22 | +This guide helps Windows users successfully build and run Apache Wayang. |
| 23 | + |
| 24 | +Many users encounter issues related to Hadoop, winutils, and environment variables. |
| 25 | +Follow these steps carefully. |
| 26 | + |
| 27 | +--- |
| 28 | + |
| 29 | +## 1. Install Java 17 |
| 30 | + |
| 31 | +Download and install: |
| 32 | + |
| 33 | +https://adoptium.net/ |
| 34 | + |
| 35 | +After installation verify: |
| 36 | +java -version |
| 37 | + |
| 38 | +--- |
| 39 | + |
| 40 | +## 2. Install Maven |
| 41 | + |
| 42 | +Download: |
| 43 | + |
| 44 | +https://maven.apache.org/download.cgi |
| 45 | + |
| 46 | +Extract and add Maven `/bin` to your **System PATH**. |
| 47 | + |
| 48 | +Verify: |
| 49 | +mvn -version |
| 50 | + |
| 51 | +--- |
| 52 | + |
| 53 | +## 3. Install Hadoop winutils |
| 54 | + |
| 55 | +Wayang requires Hadoop utilities on Windows. |
| 56 | + |
| 57 | +### Download winutils |
| 58 | + |
| 59 | +Download from: |
| 60 | + |
| 61 | +https://github.com/steveloughran/winutils |
| 62 | + |
| 63 | +Choose a version matching Hadoop 3.x. |
| 64 | + |
| 65 | +### Setup |
| 66 | + |
| 67 | +Create directory: C:\hadoop\bin |
| 68 | + |
| 69 | +Place: winutils.exe |
| 70 | + |
| 71 | +inside `bin`. |
| 72 | + |
| 73 | +--- |
| 74 | + |
| 75 | +## 4. Set Environment Variables |
| 76 | + |
| 77 | +Open: |
| 78 | + |
| 79 | +**System Properties → Environment Variables** |
| 80 | + |
| 81 | +### Add: |
| 82 | + |
| 83 | +#### HADOOP_HOME |
| 84 | +C:\hadoop |
| 85 | + |
| 86 | +#### Add to PATH |
| 87 | +C:\hadoop\bin |
| 88 | + |
| 89 | +Restart terminal after saving. |
| 90 | + |
| 91 | +--- |
| 92 | + |
| 93 | +## 5. Verify Hadoop setup |
| 94 | + |
| 95 | +Run: |
| 96 | +winutils.exe ls |
| 97 | + |
| 98 | + |
| 99 | +If no error appears → setup is correct. |
| 100 | + |
| 101 | +--- |
| 102 | + |
| 103 | +## 6. Build Wayang |
| 104 | + |
| 105 | +From project root: |
| 106 | +./mvnw clean install -DskipTests |
| 107 | + |
| 108 | +--- |
| 109 | + |
| 110 | +## 7. Common Issues |
| 111 | + |
| 112 | +### ❌ winutils.exe not found |
| 113 | +Ensure: |
| 114 | + |
| 115 | +• file exists in `C:\hadoop\bin` |
| 116 | +• PATH includes the bin folder |
| 117 | + |
| 118 | +### ❌ HADOOP_HOME not set |
| 119 | +Verify environment variable. |
| 120 | + |
| 121 | +### ❌ Access denied errors |
| 122 | +Run terminal as Administrator. |
| 123 | + |
| 124 | +--- |
| 125 | + |
| 126 | +## 8. Notes |
| 127 | + |
| 128 | +• Windows support requires winutils. |
| 129 | +• WSL (Windows Subsystem for Linux) can be used as an alternative. |
| 130 | + |
| 131 | +--- |
| 132 | + |
| 133 | +You are now ready to run Apache Wayang on Windows. |
| 134 | + |
0 commit comments