Troubleshooting Area
Setup Issues
AngularJS Issue
1. Access-Control-Allow-Origin header access is not allowed
When doing NG-Admin local domain test. Browser has such error "XMLHttpRequest cannot load ??. No 'Access-Control-Allow-Origin' header is present on the requested Resource. Origin 'null' is therefore not allowed access."
Solution, since the browser is blocking it as it usually allows a request in the same origin for security reasons. The easy way is to just add this Browser Extension in google chrome to allow access using CORS.
Elastic Issues
1. localhost unreachable
Elastic cannot access localhost:9200 from host machine.
Solution, please do following two settings
Set port forwarding 9200 guest to 9200 host in virtualbox.
In elasticsearch/config/elasticsearch.yml put
MongoDB Issue
1. Unable access mongodb from out side of VirtualBox
It complains "Network Connect Issue" when connecting MongoDB from tool, such as robomongo outside of VirtualBox.
Solution, make sure in your /etc/mongod.conf
file you have the following line and restart the mongodb sudo service mongod restart
to make it work immediately.
If it still does not work, comment above line and try it again.
2. How to setup an oplog on a single MongoDB instance
MongoDB Connect Source uses Mongodb oplog to fetch data. The MongoDB oplog allows you to keep track of changes that have happened on your database in real-time. This is a very useful tool that isn’t offered out of the box with a single server instance. You can follow these steps to enable to oplog on a standalone MongoDB instance.
Add following lines in your /etc/mongodb.conf file
This will give your MongoDB server a replica set identity of rs0 and will allow your oplog to grow upto 1024mb.
Restart mongo
Go to Mongo shell and issue rs.initiate() on the local database. You'll see oplog.rs created.
3. Unable start MongoDB automatically after reboot in Ubuntu 16
In the Ubuntu 16 with MongoDB cannot auto start after reboot. Use following command to fix this.
Kafka Issue
1. Cannot connect Kafka in VirtualBox from outside IDE, such as IDEA
When we need to debug the code, we prefer to use IDE outside of the VirtualBox to connect to the Kafka Service in the VirtalBox. We need to ensure following settings are in place.
Solution, add following settings in the the server.property file for Kafka.
2. Kafka Avro Console Consumer cannot consume message from producer
When we use regular Kafka producer/publisher, such as code here, to send Avro message to Kafka, the regular AVRO console consumer like below will have exception reported.
Solution, every AVRO message inside of Confluent Platform has following structure:
Therefore, we need to manually add these extra bytes before each Avro message.
Spark Issues
1. Password less login with start-all.sh
Start spark cluster using start-all.sh requires password. We need to setup password less login in to bypass this. This is also applied to the Hadoop settings. Password-less ssh should be enabled on all nodes:
Check that ssh works locally without password:
Copy public key from the master node to worker node if you are in real cluster. Ignore this step in standalone machine.
Vagrant Issues
1. Mount folder failure
Vagrant is not able to mount /vagrant folder in version 1.8.0 for windows.
Solution: Update the code windows_unc_path() in C:\HashiCorp\Vagrant\embedded\gems\gems\vagrant-1.8.1\lib\vagrant\util\platform.rb to:
Or you can copy and replace using file here.
VM Issues
1. Mount a local shared folder with VM
Create a folder on the Host computer that you would like to share, for example~/share
Boot the Guest operating system in virtualbox
Select Devices -> Shared Folders.
Choose the 'Add' button.
Select~/share and 'Make permanent' option
Mount the folder in the ubuntu in VM
sudo mount -t vboxsf -o uid=$UID,gid=$(id -g) share /mnt/share
Zeppelin Issue
1. Hive Driver Not Found
When using hive interpreter in Zeppelin, it reports "org.apache.hive.jdbc.HiveDriver class java.lang.ClassNotFoundExceptionClassNotFoundException"
Solution: Copy proper Hadoop and Hive jar to the Zeppelin interpreter folder and restart Zeppelin.
OS Issue
1. Ubuntu Default Date is UTC, prefer to set to Local Time
DataFiber meta data use local OS time. If you want to see the meta data in local time, we need to change the OS time from default UTC to local time by following command.
Last updated