在我的电子商务网站上,匿名用户无法查看add优惠券字段,除非我给了"View any coupon of any type"许可。因为它有这样的注意:Warning: Give to trusted roles only; this permission has security implications. Acquia降低了我们website.So的分数,还有其他解决这个问题的方法吗?
我有hql文件,它有大量的单元查询,我想使用Spark执行整个文件。
这就是我尝试过的。
val sqlContext = new org.apache.spark.sql.hive.HiveContext(sc)
通常,为了执行单独的查询,我们这样做:
sqlContext.sql("SELECT * from table")
但是,当我们有具有数百个查询的hql文件时,我常常这样做。
import scala.io.Source
val filename = "/path/to/file/filename.hql"
for (line <- So