You need to have some sort of webserver in your machine to serve from a directory. Using MAMP will probably the fastest way to get started. Point your webserver to the hub repository directory.
cd
into the hub repositorycd packager
mvn clean package
cd ..
java -cp packager/target/*:packager/target/lib/* io.cdap.hub.Tool build
java -cp .\packager\target\*;.\packager\target\lib\* io.cdap.hub.Tool build
python -m SimpleHTTPServer
- Launch MAMP. If this is the first time you are launching MAMP, make sure you check Never Open This Dialog Again, and choose launch MAMP (not MAMP PRO).
- Open Preferences
- Go to Ports Tab
- Change Apache Port to 80
- Go to Web Server Tab
- Make sure Apache is selected
- Click on the Folder icon with 3 dots next to Document Root.
- Navigate your cdap directory, and click Select
- Click OK
- Click Start Server
Navigate to
<cdap sdk directory>/ui/server/config/cdap-ui-config.json
Modify the market property
"market": {
"path": "http://localhost",
"version": ""
}
Restart CDAP UI
Modify cdap-site.xml
<property>
<name>market.base.url</name>
<value>http://localhost</value>
<description>
Local Cask Market base url
</description>
</property>
Restart CDAP SDK