How to use properties in spark scala maven project
问题 i want to include properties file explicitly and include it in spark code , instead of hardcoding directly in spark code with all credentials. i am trying following approach but not able to do, AppContext is not able to be resolved. please guide me how to achieve this. Spark_env.properties (under src/main/resourcses in maven project for spark with scala) CASSANDRA_HOST1=127.0.0.133 CASSANDRA_PORT1=9042 CASSANDRA_USER1=usr1 CASSANDRA_PASS1=pas2 DataMigration.cassandra.keyspace1=demo2